colouring-montreal/app/src/frontend/globalContext.ts
2022-12-08 20:42:56 +01:00

13 lines
294 B
TypeScript

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