2025-11-20 11:33:37 +02:00
|
|
|
import { atom } from "jotai";
|
|
|
|
|
import type { GetDocumentsRequest } from "@/contracts/types/document.types";
|
|
|
|
|
|
|
|
|
|
export const globalDocumentsQueryParamsAtom = atom<GetDocumentsRequest["queryParams"]>({
|
|
|
|
|
page_size: 10,
|
|
|
|
|
page: 0,
|
|
|
|
|
});
|
2026-03-06 14:40:10 +05:30
|
|
|
|
|
|
|
|
export const documentsSidebarOpenAtom = atom(false);
|
2026-03-28 16:39:46 -07:00
|
|
|
|
|
|
|
|
export interface AgentCreatedDocument {
|
|
|
|
|
id: number;
|
|
|
|
|
title: string;
|
|
|
|
|
documentType: string;
|
|
|
|
|
searchSpaceId: number;
|
|
|
|
|
folderId: number | null;
|
|
|
|
|
createdById: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const agentCreatedDocumentsAtom = atom<AgentCreatedDocument[]>([]);
|