SurfSense/surfsense_web/features/chat-artifacts/state/artifacts-panel.atom.ts
2026-06-22 22:35:50 +02:00

8 lines
359 B
TypeScript

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);