import { Button, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@arronqzy/ui"; import { useI18n } from "@arronqzy/i18n/react"; export type BlueprintNodeSwitchTaskDialogProps = { open: boolean; fromNodeId: string; toNodeId: string | null; onOpenChange: (open: boolean) => void; onKeepTaskAndSwitch: () => void; onCancelTaskAndSwitch: () => void; }; export function BlueprintNodeSwitchTaskDialog({ open, fromNodeId, toNodeId, onOpenChange, onKeepTaskAndSwitch, onCancelTaskAndSwitch, }: BlueprintNodeSwitchTaskDialogProps) { const { t } = useI18n(); const targetLabel = toNodeId === null ? t("blueprint.dialog.cancelSelection") : t("blueprint.dialog.nodeTarget", { id: toNodeId }); return ( {t("blueprint.dialog.taskRunningTitle")} {t("blueprint.dialog.taskRunningDescription", { fromNodeId, target: targetLabel, })}

{t("blueprint.dialog.taskSwitchHint")}

); }