import { atom } from 'jotai'; export const showCommentPopupAtom = atom(false); export const activeCommentIdAtom = atom(''); export const draftCommentIdAtom = atom(''); // Read-only comment state export const showReadOnlyCommentPopupAtom = atom(false); export type YjsSelection = { anchor: any; head: any; }; export type ReadOnlyCommentData = { yjsSelection: YjsSelection; selectedText: string; }; export const readOnlyCommentDataAtom = atom(null);