mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
13 lines
326 B
TypeScript
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();
|