import type { ActiveFromExtensions , AnyExtension } from '@remirror/core' ; import { useRemirrorContext } from './use-remirror-context' ; param autoUpdate export function useActive < Extension extends AnyExtension = Remirror . Extensions > ( autoUpdate = true ) { return useRemirrorContext < Extension > ( { autoUpdate } ) . active ; }