import { useState } from "react"; import { AnimatedModal } from "../ui/AnimatedModal"; import { Button } from "../ui/Button"; import type { DependencyInfo } from "../../lib/types"; interface DependencyDialogProps { open: boolean; deps: DependencyInfo[]; onProceed: () => void; onCancel: () => void; } export function DependencyDialog({ open, deps, onProceed, onCancel }: DependencyDialogProps) { const [ack, setAck] = useState(false); const hasDeps = deps.length > 0; return (

Dependencies

{hasDeps ? ( <>

The following depend on this object and will be removed with CASCADE:

) : (

No dependencies — safe to drop.

)}
); }