mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
9 lines
263 B
TypeScript
9 lines
263 B
TypeScript
|
import { createContext, useContext } from 'react';
|
||
|
|
||
|
const SearchHighlightContext = createContext('');
|
||
|
|
||
|
export const SearchHighlightProvider = SearchHighlightContext.Provider;
|
||
|
|
||
|
export const useSearchHighlightContext = () =>
|
||
|
useContext(SearchHighlightContext);
|