"use client"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@kandev/ui/alert-dialog"; import { useTranslation } from "react-i18next"; type TreeCancelDialogProps = { open: boolean; onOpenChange: (open: boolean) => void; taskCount: number; activeRunCount: number; onConfirm: () => void; }; export function TreeCancelDialog({ open, onOpenChange, taskCount, activeRunCount, onConfirm, }: TreeCancelDialogProps) { const { t } = useTranslation(); return ( {t("task:cancelTaskTree")} {t("task:treeCancelDescription", { taskCount, activeRunCount })} {t("task:keepRunning")} {t("task:cancelTree")} ); }