mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-20 09:48:00 +00:00
global settings context, provider, hook
This commit is contained in:
10
src/Contexts/GlobalSettingsContext.tsx
Normal file
10
src/Contexts/GlobalSettingsContext.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
export type GlobalSettingsContextType = {
|
||||
isFullscreen: boolean;
|
||||
enableFullscreen: () => void;
|
||||
disableFullscreen: () => void;
|
||||
};
|
||||
|
||||
export const GlobalSettingsContext =
|
||||
createContext<GlobalSettingsContextType | null>(null);
|
||||
Reference in New Issue
Block a user