import { Layers } from 'lucide-react' import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, } from '@/components/ui/dialog' import { Button } from '@/components/ui/button' interface ConfirmAddToGroupModalProps { open: boolean nodeLabel: string /** Label of the destination group/container. */ targetLabel: string /** Destination kind — drives the wording. Defaults to 'group'. */ variant?: 'group' | 'container' onConfirm: () => void onCancel: () => void } export function ConfirmAddToGroupModal({ open, nodeLabel, targetLabel, variant = 'group', onConfirm, onCancel, }: ConfirmAddToGroupModalProps) { const action = variant === 'container' ? 'Add to container' : 'Add to group' const noun = variant === 'container' ? 'container' : 'group' return ( { if (!o) onCancel() }}> {action} Add {nodeLabel} to the {noun}{' '} {targetLabel}? ) }