import { useState } from "react"; import { Dialog, DialogTrigger, DialogContent, DialogTitle, DialogDescription, DialogFooter, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; export function DeleteInventoryItem({ id }: { id: string }) { const [open, setOpen] = useState(false); const handleDelete = () => { console.log(`Item with ID ${id} deleted.`); setOpen(false); }; return (
{/* trigger button for the confirmation dialog */} Confirm Deletion Are you sure you want to delete this item? This action cannot be undone. {/* footer with confirm and cancel buttons */}
); }