show when logged in

This commit is contained in:
Thomas Ruoff
2020-11-08 23:39:30 +01:00
parent bd32cfb90b
commit 7fcdf680d3
3 changed files with 36 additions and 14 deletions

View 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