feat: add artifacts panel state atoms

This commit is contained in:
CREDO23 2026-06-22 22:35:50 +02:00
parent cba2a726a2
commit 71f16c93dd

View file

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