import { atom, useAtom } from "jotai"; export type ChatConfig = { isOpen: boolean; showInfo: boolean; showProfile: boolean; }; const chatConfigAtom = atom({ isOpen: false, showInfo: false, showProfile: false, }); export function useChatConfig() { return useAtom(chatConfigAtom); }