snapshot of https://github.com/excalidraw/excalidraw.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Tests / test (push) Failing after 15s
Some checks failed
Tests / test (push) Failing after 15s
This commit is contained in:
17
packages/excalidraw/components/TTDDialog/TTDContext.tsx
Normal file
17
packages/excalidraw/components/TTDDialog/TTDContext.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { randomId } from "@excalidraw/common";
|
||||
|
||||
import { atom } from "../../editor-jotai";
|
||||
|
||||
import type { RateLimits, TChat } from "./types";
|
||||
|
||||
export const rateLimitsAtom = atom<RateLimits | null>(null);
|
||||
|
||||
export const showPreviewAtom = atom<boolean>(false);
|
||||
|
||||
export const errorAtom = atom<Error | null>(null);
|
||||
|
||||
export const chatHistoryAtom = atom<TChat.ChatHistory>({
|
||||
id: randomId(),
|
||||
messages: [],
|
||||
currentPrompt: "",
|
||||
});
|
||||
Reference in New Issue
Block a user