replace breadcrumb with navigation

This commit is contained in:
Thomas Ruoff
2020-12-26 00:03:59 +01:00
parent 6bff2a1fae
commit a9e535a689
4 changed files with 81 additions and 47 deletions

17
components/user.tsx Normal file
View File

@@ -0,0 +1,17 @@
import { useContext } from 'react'
import UserContext from './user/context'
export default function User() {
const { username, role } = useContext(UserContext)
if (!username || !role) {
return null
}
return (
<div className="font-extrabold bg-red-400 px-2 py-1 mr-3 rounded-sm">
{username}
</div>
)
}