{sendError ?
: null}
{channel === "direct" && !directRecipientId ?
: null}
{replyTo ? (
Replying to {agents.find((a) => a.id === replyTo.fromAgentId)?.name ?? "agent"}{replyTo.subject ? `: ${replyTo.subject}` : ""}
) : null}
Press {navigator.platform.includes("Mac") ? "Cmd" : "Ctrl"}+Enter to send
)
}
export function TaskDiscussionComposer({ companyId, taskId, onSent }: { companyId: string; taskId: string; onSent: () => void }) {
const [body, setBody] = useState(""); const [sending, setSending] = useState(false); const [sendError, setSendError] = useState