import {Anchor, AppShell, Box, Burger, Button, Group, Image, Menu, Stack} from "@mantine/core";
import React from "react";
import {Link} from "react-router-dom";
import {useAuth0} from "@auth0/auth0-react";
export default function PageHeader() {
const {user, isAuthenticated, loginWithRedirect, logout} = useAuth0();
const picture = () => {
if (user.picture) {
return
} else {
return <>>
}
}
const userDisplay = () => {
if (isAuthenticated) {
return
{picture()}
} else {
return
}
}
const items = [{name: 'Examples', href: '/examples', key: 'examples'},
{name: 'About', href: '/', key: 'about'},
{name: 'Documentation', href: '/documentation', key: 'documentation'},
{name: 'Pricing', href: '/pricing', key: 'pricing'},
{name: 'VR Experience', href: '/db/public/local', key: 'vrexperience'}]
const mainMenu = function () {
return items.map((item) => {
return (
{item.name}
)
})
}
const miniMenu = function () {
return items.map((item) => {
return (
{item.name}
)
})
}
return (
{mainMenu()}
{userDisplay()}
)
}