'use client' import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from '../ui/dialog' import { Button } from '../ui/button' import { Send, Loader2, Clock } from 'lucide-react' interface SendSummaryItem { label: string value: string } interface SendConfirmationDialogProps { open: boolean onOpenChange: (open: boolean) => void onConfirm: () => void sending: boolean title?: string description?: string summaryItems: SendSummaryItem[] warningMessage?: string } export function SendConfirmationDialog({ open, onOpenChange, onConfirm, sending, title = 'Send Update', description = 'Are you ready to send this?', summaryItems, warningMessage = 'Emails will be sent immediately. Each recipient will receive a personalized version with their information.', }: SendConfirmationDialogProps) { return ( {title} {description}
{summaryItems.map((item) => (
{item.label}: {item.value}
))}
{warningMessage && (

{warningMessage}

)}
) }