aboutsummaryrefslogtreecommitdiff
path: root/src/contexts
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-30 23:16:07 -0500
committerBobby <[email protected]>2022-11-30 23:16:07 -0500
commitdaaa789068cebb5fdfcea6197ade6e663be46e0f (patch)
tree1cd315851b779ac28fe622da332c3c16fe1c433c /src/contexts
downloadtcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.tar.xz
tcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.zip
socialify update
Diffstat (limited to 'src/contexts')
-rw-r--r--src/contexts/ConfigContext.ts16
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