import { ReactCodeMirrorRef } from '@uiw/react-codemirror'; type ToolbarCommand = { name: string; icon: JSX.Element; execute: (codeMirrorRef: ReactCodeMirrorRef) => void; }; export type { ToolbarCommand as T };