"use client"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@kandev/ui/alert-dialog"; type TreeCancelDialogProps = { open: boolean; onOpenChange: (open: boolean) => void; taskCount: number; activeRunCount: number; onConfirm: () => void; }; export function TreeCancelDialog({ open, onOpenChange, taskCount, activeRunCount, onConfirm, }: TreeCancelDialogProps) { return ( Cancel task tree This will cancel {taskCount} tasks and interrupt {activeRunCount} active agent sessions. This action can be undone with Restore. Keep running Cancel tree ); }