"use client"; import type { ReactNode } from "react"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; type Props = { open: boolean; title: string; description: string; confirmLabel?: string; pending?: boolean; children?: ReactNode; onOpenChange: (open: boolean) => void; onConfirm: () => void; }; export default function ConfirmDialog({ open, title, description, confirmLabel = "Löschen", pending = false, children, onOpenChange, onConfirm, }: Props) { return ( {title} {description} {children &&
{children}
}
); }