import { useContext } from 'react'; import { HighlightContextType } from './HighlightContext'; export const useHighlightContext = ( ctx: HighlightContextType, ) => { const context = useContext(ctx); return context; };