💄 selection count
This commit is contained in:
@@ -63,6 +63,8 @@ interface EditorState {
|
||||
// Word counts
|
||||
projectWordCount: number
|
||||
setProjectWordCount: (count: number) => void
|
||||
selectionWordCount: number | null
|
||||
setSelectionWordCount: (count: number | null) => void
|
||||
|
||||
// Editor font size
|
||||
fontSize: number
|
||||
@@ -593,6 +595,9 @@ export const useEditorStore = create<EditorState>((set, get) => ({
|
||||
projectWordCount: 0,
|
||||
setProjectWordCount: (projectWordCount) => set({ projectWordCount }),
|
||||
|
||||
selectionWordCount: null as number | null,
|
||||
setSelectionWordCount: (count: number | null) => set({ selectionWordCount: count }),
|
||||
|
||||
revisionPanelOpen: false,
|
||||
toggleRevisionPanel: () => set((s) => ({ revisionPanelOpen: !s.revisionPanelOpen })),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user