14 lines
276 B
TypeScript
14 lines
276 B
TypeScript
import { useContext } from 'react';
|
|
import {
|
|
SettingsContext,
|
|
SettingsContextProps,
|
|
} from '../context/SettingsContext';
|
|
|
|
const useSettings = (): SettingsContextProps => {
|
|
const settings = useContext(SettingsContext);
|
|
|
|
return settings;
|
|
};
|
|
|
|
export default useSettings;
|