import { Link } from 'preact-router/match' import { isAdministrator } from '../../shared/model' import { prependBaseUrl } from '../api' import { useCurrentUser } from '../hooks/useCurrentUser' // const ROLE_LABEL: Record = { // ['admin']: 'Admin', // ['moderator']: 'Moderatore', // ['student']: 'Studente', // } export const Header = ({}) => { const [user] = useCurrentUser() return (
) }