"use client"; import { useState } from "react"; import { useTranslations } from "next-intl"; import { Sparkles } from "lucide-react"; import { Label, Switch } from "../../../../shadcnui"; import { SectionHeader } from "../../../../components/typography"; import { AssistantComposer } from "./AssistantComposer"; interface Props { onSend: (content: string) => Promise; /** * Operator engine toggle (durable, approval-gated runs). Rendered only when * `onOperatorModeChange` is provided; the default (responder) flow stays * unchanged otherwise. */ operatorMode?: boolean; onOperatorModeChange?: (value: boolean) => void; } const STARTER_KEYS = ["a", "b", "c", "d"] as const; export function AssistantEmptyState({ onSend, operatorMode = false, onOperatorModeChange }: Props) { const t = useTranslations(); const [draft, setDraft] = useState(""); return (
{t("features.assistant.empty_state.title")}

{t("features.assistant.empty_state.subtitle")}

{onOperatorModeChange && (
onOperatorModeChange(checked === true)} />
)}
{STARTER_KEYS.map((k) => { const text = t(`features.assistant.starters.${k}`); return ( ); })}
); }