diff --git a/surfsense_web/features/chat-artifacts/state/artifacts-panel.atom.ts b/surfsense_web/features/chat-artifacts/state/artifacts-panel.atom.ts new file mode 100644 index 000000000..c29a24845 --- /dev/null +++ b/surfsense_web/features/chat-artifacts/state/artifacts-panel.atom.ts @@ -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([]); + +/** Whether the artifacts sidebar is open in the right panel. */ +export const artifactsPanelOpenAtom = atom(false);