feat(frontend): add option to hide all available items from discovery (#699)
This commit is contained in:
13
src/hooks/useSettings.ts
Normal file
13
src/hooks/useSettings.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { useContext } from 'react';
|
||||
import {
|
||||
SettingsContext,
|
||||
SettingsContextProps,
|
||||
} from '../context/SettingsContext';
|
||||
|
||||
const useSettings = (): SettingsContextProps => {
|
||||
const settings = useContext(SettingsContext);
|
||||
|
||||
return settings;
|
||||
};
|
||||
|
||||
export default useSettings;
|
||||
Reference in New Issue
Block a user