import type { TaskInterruptionPresentation } from "@paperclipai/shared"; import { Button } from "./ui/button"; import { cn } from "../lib/utils"; import { useSecondTick } from "../hooks/useSecondTick"; /** One ordinary interruption surface. Technical records remain in diagnostics. */ export function ExecutionBlockerNotice({ presentation, canRetry, onRetry, optimistic, takingLonger, error, className }: { presentation: TaskInterruptionPresentation | null | undefined; canRetry: boolean; onRetry: () => void; optimistic?: boolean; takingLonger?: boolean; error?: Error | null; className?: string; }) { useSecondTick(presentation?.state === "retry_scheduled"); if (error && !optimistic && !takingLonger) return