mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 14:37:13 +01:00
show when logged in
This commit is contained in:
9
components/user/context.tsx
Normal file
9
components/user/context.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import React from 'react'
|
||||
import { UserData } from '../../lib/session'
|
||||
|
||||
const UserContext = React.createContext<UserData>({
|
||||
username: undefined,
|
||||
role: undefined,
|
||||
})
|
||||
|
||||
export default UserContext
|
||||
Reference in New Issue
Block a user