"use client"; import { useTranslation } from "react-i18next"; import { Label } from "@kandev/ui/label"; import { Textarea } from "@kandev/ui/textarea"; import type { Workflow } from "@/lib/types/http"; import { isWorkflowFieldDirty } from "./workflow-dirty-state"; type WorkflowDescriptionFieldProps = { workflow: Workflow; savedWorkflow?: Workflow; readOnly?: boolean; onUpdate: (description: string) => void; }; // Always visible, unlike WorkflowPromptSection's collapsible — every synced workflow carries one. export function WorkflowDescriptionField({ workflow, savedWorkflow, readOnly, onUpdate, }: WorkflowDescriptionFieldProps) { const { t } = useTranslation(); const inputId = `workflow-description-input-${workflow.id}`; return (