diff options
| author | Bobby <[email protected]> | 2022-11-30 23:16:07 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-30 23:16:07 -0500 |
| commit | daaa789068cebb5fdfcea6197ade6e663be46e0f (patch) | |
| tree | 1cd315851b779ac28fe622da332c3c16fe1c433c /src/contexts/ConfigContext.ts | |
| download | tcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.tar.xz tcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.zip | |
socialify update
Diffstat (limited to 'src/contexts/ConfigContext.ts')
| -rw-r--r-- | src/contexts/ConfigContext.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/contexts/ConfigContext.ts b/src/contexts/ConfigContext.ts new file mode 100644 index 0000000..952c012 --- /dev/null +++ b/src/contexts/ConfigContext.ts @@ -0,0 +1,16 @@ +import React from 'react' + +import { DEFAULT_CONFIG } from '../../common/configHelper' +import Configuration from '../../common/types/configType' + +type ConfigContextType = { + config: Configuration + setConfig: (config: Configuration) => void +} + +const ConfigContext: React.Context<ConfigContextType> = React.createContext({ + config: DEFAULT_CONFIG, + setConfig: (config: Configuration) => {} +}) + +export default ConfigContext |
