Files
bolt.diy/app/lib/stores/chat.ts
2025-04-26 13:04:08 -07:00

13 lines
329 B
TypeScript

import { atom } from 'nanostores';
import type { ChatContents } from '~/lib/persistence/chats';
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();