import { undo as undoHandle } from '@codemirror/commands'; import { ICommand } from '.'; export const undo: ICommand = { name: 'undo', keyCommand: 'undo', button: { 'aria-label': 'undo text' }, icon: ( ), execute: ({ state, view }) => { if (!state || !view) return; undoHandle(view); }, };