colouring-montreal/app/src/frontend/globalContext.ts

13 lines
294 B
TypeScript
Raw Normal View History

2022-12-05 19:04:03 -05:00
type UserContextType = {
context: string | null,
setContext: React.Dispatch<React.SetStateAction<string | null>>
}
const iUserContextState = {
context: null,
setContext: () => {}
}
const UserContext = createContext<UserContextType>(iUserContextState)
export default UserContext