mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
15 lines
349 B
TypeScript
15 lines
349 B
TypeScript
"use client";
|
|
|
|
import { atom } from "jotai";
|
|
|
|
export interface ChatSessionStateData {
|
|
threadId: number;
|
|
isAiResponding: boolean;
|
|
respondingToUserId: string | null;
|
|
}
|
|
|
|
/**
|
|
* Global chat session state atom.
|
|
* Updated by useChatSessionStateSync hook, read anywhere.
|
|
*/
|
|
export const chatSessionStateAtom = atom<ChatSessionStateData | null>(null);
|