bolt.diy/app/lib/stores/chat.ts
2025-04-02 16:02:06 -07:00

13 lines
326 B
TypeScript

import { atom } from 'nanostores';
import type { ChatContents } from '~/lib/persistence/db';
export class ChatStore {
currentChat = atom<ChatContents | undefined>(undefined);
started = atom<boolean>(false);
aborted = atom<boolean>(false);
showChat = atom<boolean>(true);
}
export const chatStore = new ChatStore();