mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
16 lines
349 B
TypeScript
16 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);
|