import { ExtensionPriority , KeyBindings , KeymapExtension } from '@remirror/core' ; import { useExtension } from '@remirror/react-core' ; remarks export function useKeymaps ( bindings , priority = ExtensionPriority . Medium ) { useExtension ( KeymapExtension , ( { addCustomHandler } ) => addCustomHandler ( 'keymap' , [ priority , bindings ] ) , [ priority , bindings ] ) ; }