feat(frontend): add option to hide all available items from discovery (#699)

This commit is contained in:
sct
2021-01-20 18:56:45 +09:00
committed by GitHub
parent e1032ff5df
commit 6c1742e94c
19 changed files with 192 additions and 19 deletions

13
src/hooks/useSettings.ts Normal file
View 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;