import { Selection } from '@remirror/core' ; import { useRemirrorContext } from './use-remirror-context' ; /**
 * A core hook which returns the current selection.
 */ export function useCurrentSelection ( ) { return useRemirrorContext ( { autoUpdate : true } ) . getState ( ) . selection ; }