import axios from "axios"; import Link from "next/link"; import {useRouter} from "next/router"; interface Props { profilePicture: string; } /* eslint-disable @next/next/no-img-element */ export default function Navbar({profilePicture}: Props) { const router = useRouter(); const logout = async () => { axios.post("/api/logout").finally(() => { router.push("/login"); }); }; return (