mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-10 17:53:36 +02:00
* refactor: replace react-dnd with custom implementation * refactor: add TextCell, IconCell, and ActionCell * refactor: port environments list to react-table * refactor: change OfflineBolt to PowerSettingsNew * refactor: simplify environment toast text * refactor: improve IToast type type * refactor: improve useSearchHighlightContext naming * refactor: clarify enableDragAndDrop logic
10 lines
317 B
TypeScript
10 lines
317 B
TypeScript
import { createContext, useContext } from 'react';
|
|
|
|
const SearchHighlightContext = createContext('');
|
|
|
|
export const SearchHighlightProvider = SearchHighlightContext.Provider;
|
|
|
|
export const useSearchHighlightContext = (): { searchQuery: string } => {
|
|
return { searchQuery: useContext(SearchHighlightContext) };
|
|
};
|