Something went wrong. Try again.
A local-first note taking app
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import type { ActionSet, ActionDefinition } from '../types';import type { WorkspaceKind } from '../../workspaces/workspace';
/** * ActionSet for workspace switching actions. */export class WorkspaceActionSet implements ActionSet { readonly id = 'workspace';
constructor(private setWorkspaceKind: (kind: WorkspaceKind) => void) {}
getActions(): ActionDefinition[] { return [ { id: 'tiling', name: 'Switch to tiling workspace', description: 'Arrange documents in split panes', execute: () => this.setWorkspaceKind('tiling'), }, { id: 'zen', name: 'Switch to zen workspace', description: 'Focus on a single document', execute: () => this.setWorkspaceKind('zen'), }, ]; }}