SurfSense/surfsense_web/atoms/documents/ui.atoms.ts
Anish Sarkar 4088289f95 refactor(documents): remove unused document editing functionality and streamline components
- Eliminated references to document editing in DocumentNode, FolderTreeView, and DocumentsSidebar for a cleaner interface.
- Updated DocumentNode to enhance accessibility with keyboard interactions and improved click handling.
- Adjusted layout in AllChatsSidebar and MobileSidebar for better user experience and consistency across components.
2026-07-06 16:02:22 +05:30

18 lines
475 B
TypeScript

import { atom } from "jotai";
import type { GetDocumentsRequest } from "@/contracts/types/document.types";
export const globalDocumentsQueryParamsAtom = atom<GetDocumentsRequest["queryParams"]>({
page_size: 10,
page: 0,
});
export interface AgentCreatedDocument {
id: number;
title: string;
documentType: string;
workspaceId: number;
folderId: number | null;
createdById: string | null;
}
export const agentCreatedDocumentsAtom = atom<AgentCreatedDocument[]>([]);