import { Editor } from '@tiptap/core'; export interface Group { title: string; commands: Command[]; } export interface Command { label: string; key: string; description: string; aliases?: string[]; iconName: string; iconColor?: string; action?: (editor: Editor) => void; shouldBeHidden?: (editor: Editor) => boolean; notCommand?: boolean; popover?: any; disabled?: any; } export interface MenuListProps { editor: Editor; items: Group[]; command: (command: Command) => void; }