export function submitComposer( event: Event, input: string, busy: boolean, submit: (event: Event) => void, focus: () => void, ): void { event.preventDefault(); if (busy || !input.trim()) return; submit(event); focus(); }