12 lines
325 B
TypeScript
12 lines
325 B
TypeScript
import type { SettingsContextProps } from '@app/context/SettingsContext';
|
|
import { SettingsContext } from '@app/context/SettingsContext';
|
|
import { useContext } from 'react';
|
|
|
|
const useSettings = (): SettingsContextProps => {
|
|
const settings = useContext(SettingsContext);
|
|
|
|
return settings;
|
|
};
|
|
|
|
export default useSettings;
|