import { useId } from "react"; import { Loader2, Pause, Play } from "lucide-react"; import { Link } from "@/lib/router"; import { Button } from "@/components/ui/button"; export interface TaskComposerPause { scope: "leaf" | "subtree"; onResume?: () => void; resumeHref?: string; pending?: boolean; error?: string | null; } /** Replaces all input controls until the effective pause hold is released. */ export function TaskChatPausedTakeover({ scope, resumeHref, hasDraft = false, pending = false, error, onResume, }: { hasDraft?: boolean; } & TaskComposerPause) { const headingId = useId(); const subtree = scope === "subtree"; return (
{error ? (

{error}

) : null}
{hasDraft ? (

Your draft is saved.

) : null} {resumeHref ? ( ) : ( )}
); }