'use client'; import { memo } from 'react'; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from '@kandev/ui/alert-dialog'; type TaskPlanDialogsProps = { showDiscardDialog: boolean; showClearDialog: boolean; onDiscardDialogChange: (open: boolean) => void; onClearDialogChange: (open: boolean) => void; onDiscard: () => void; onClear: () => void; }; export const TaskPlanDialogs = memo(function TaskPlanDialogs({ showDiscardDialog, showClearDialog, onDiscardDialogChange, onClearDialogChange, onDiscard, onClear, }: TaskPlanDialogsProps) { return ( <> {/* Discard confirmation dialog */} Discard changes? You have unsaved changes. Are you sure you want to discard them? Cancel Discard {/* Clear plan confirmation dialog */} Clear plan? This will permanently delete the plan. This action cannot be undone. Cancel Delete ); });