/** * 廠商刪除確認對話框 */ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/Components/ui/alert-dialog"; import type { Supplier } from "@/types/vendor"; interface VendorDeleteDialogProps { open: boolean; supplier: Supplier | null; onConfirm: () => void; onCancel: () => void; } export default function VendorDeleteDialog({ open, supplier, onConfirm, onCancel, }: VendorDeleteDialogProps) { return ( 確認刪除廠商 確定要刪除 {supplier?.name} 廠商嗎?此操作無法撤銷。 取消 刪除 ); }