mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-26 21:39:43 +02:00
feat: add artifacts panel state atoms
This commit is contained in:
parent
cba2a726a2
commit
71f16c93dd
1 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
import { atom } from "jotai";
|
||||
import type { ChatArtifact } from "../model/artifact";
|
||||
|
||||
/** Artifacts of the active thread, synced from the message stream by `useSyncChatArtifacts`. */
|
||||
export const chatArtifactsAtom = atom<ChatArtifact[]>([]);
|
||||
|
||||
/** Whether the artifacts sidebar is open in the right panel. */
|
||||
export const artifactsPanelOpenAtom = atom(false);
|
||||
Loading…
Add table
Add a link
Reference in a new issue