import { jsx as _jsx } from "react/jsx-runtime";
import { Dialog } from "./design/Dialog.js";
export function exitFlowMessage(hasRunningTasks) {
    return hasRunningTasks
        ? "There are unfinished local runs. Use /runs or /attach before quitting."
        : "DeepSeekCode is idle and ready to quit.";
}
export function ExitFlow(props) {
    return (_jsx(Dialog, { title: "Exit DeepSeekCode", statusLabel: props.hasRunningTasks ? "busy" : "idle", statusTone: props.hasRunningTasks ? "warning" : "success", width: props.width, children: exitFlowMessage(props.hasRunningTasks) }));
}
