import { Dialog, DialogContent, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogFooter } from "../ui/dialog"; export default function DeleteConfirmation({ onDelete, trigger = true, children }: { trigger?: boolean, onDelete?: () => void; children: React.ReactNode }) { return ( {trigger ? ( {children} ) : ( <> {children} )} Are you sure? You will not be able to recover this it. Delete Cancel ) }