diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-01 11:48:10 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-01 11:48:10 +0100 |
commit | ee1c55cf82fc8155d61cbe8b9357af910670e9fd (patch) | |
tree | b4a2299e862786db305a006fa657e17b120e4fd5 /components | |
parent | cc89982580f39d353de5de116981f0d528654494 (diff) |
beginsel global state
Diffstat (limited to 'components')
-rw-r--r-- | components/globalState.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/globalState.tsx b/components/globalState.tsx new file mode 100644 index 0000000..bf6ee40 --- /dev/null +++ b/components/globalState.tsx @@ -0,0 +1,14 @@ +import React from 'react'; + +type globalState = { + gameSettings: { + timeLimit: { + on: boolean; + time: Number; + useForBoth: boolean; + } + rankedGame: boolean; + } +} + +export var GlobalStateContext = React.createContext(); |