import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { Trash2 } from "lucide-react"; import { Feature } from "@/store/app-store"; interface DeleteCompletedFeatureDialogProps { feature: Feature | null; onClose: () => void; onConfirm: () => void; } export function DeleteCompletedFeatureDialog({ feature, onClose, onConfirm, }: DeleteCompletedFeatureDialogProps) { if (!feature) return null; return ( !open && onClose()}> Delete Feature Are you sure you want to permanently delete this feature? "{feature.description?.slice(0, 100)} {(feature.description?.length ?? 0) > 100 ? "..." : ""}" This action cannot be undone. ); }