import { useAtom } from "jotai";
import { chatInputErrorAtom, chatInputModeAtom, chatInputStatusAtom, chatInputTextAtom, chatInputTranscriptAtom, } from "../atoms/chatInputAtoms";
import { attachmentListAtom } from "../atoms/attachmentAtoms";
export function useChatInputState() {
    const [mode, setMode] = useAtom(chatInputModeAtom);
    const [status, setStatus] = useAtom(chatInputStatusAtom);
    const [text, setText] = useAtom(chatInputTextAtom);
    const [transcript, setTranscript] = useAtom(chatInputTranscriptAtom);
    const [error, setError] = useAtom(chatInputErrorAtom);
    const [attachments, setAttachments] = useAtom(attachmentListAtom);
    return {
        mode,
        setMode,
        status,
        setStatus,
        text,
        setText,
        transcript,
        setTranscript,
        error,
        setError,
        attachments,
        setAttachments,
    };
}
