import { createPluginFactory, HotkeyPlugin } from '@udecode/plate-common';

import { onKeyDownHighlight } from './onKeyDownHighlight';

export const ELEMENT_HIGHLIGH_BLOCK = 'highlight_block';

export const createHighlightBlockPlugin = createPluginFactory<HotkeyPlugin>({
  key: ELEMENT_HIGHLIGH_BLOCK,
  isElement: true,
  handlers: {
    onKeyDown: onKeyDownHighlight,
  },
});
