mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 01:36:30 +02:00
17 lines
423 B
TypeScript
17 lines
423 B
TypeScript
import { atom } from "jotai";
|
|
import type { GetChatsRequest } from "@/contracts/types/chat.types";
|
|
|
|
type ActiveChathatUIState = {
|
|
isChatPannelOpen: boolean;
|
|
};
|
|
|
|
export const activeChathatUIAtom = atom<ActiveChathatUIState>({
|
|
isChatPannelOpen: false,
|
|
});
|
|
|
|
export const activeChatIdAtom = atom<string | null>(null);
|
|
|
|
export const globalChatsQueryParamsAtom = atom<GetChatsRequest["queryParams"]>({
|
|
limit: 5,
|
|
skip: 0,
|
|
});
|