import { createPortal } from "react-dom"; import { Button } from "./ui/button"; /** Out of document flow so a failed optional read cannot move task rows. */ export function IssueRowDetailsNotice({ error, onRetry, message = "Some task details couldn’t load.", retryLabel = "Retry details" }: { error: Error | null; onRetry: () => void; message?: string; retryLabel?: string; }) { if (!error) return null; return createPortal(

{message}

, document.body, ); }