SurfSense/surfsense_web/atoms/layout/right-panel.atom.ts
Anish Sarkar f617ae8742 feat: implement editor panel functionality and integrate with existing components
- Added editor panel state management using Jotai atoms.
- Integrated editor panel into the right panel and documents sidebar.
- Updated DocumentsTableShell to open the editor panel on edit action.
- Enhanced NewChatPage to close the editor panel when navigating away.
- Improved context menu actions for document editing and deletion.
2026-03-17 16:55:31 +05:30

8 lines
284 B
TypeScript

import { atom } from "jotai";
export type RightPanelTab = "sources" | "report" | "editor";
export const rightPanelTabAtom = atom<RightPanelTab>("sources");
/** Whether the right panel is collapsed (hidden but state preserved) */
export const rightPanelCollapsedAtom = atom(false);