import * as React from "react"; import { useNavigate } from "react-router-dom"; import IsAuthenticated from "../authentication/IsAuthenticated"; import axiosapi from "../../api/AuthenticationApi"; const settings = { Profile: '/update_profile', Account: '/account', }; function NavBar() { const Navigate = useNavigate(); const isAuthenticated = IsAuthenticated(); const logout = () => { axiosapi.apiUserLogout(); Navigate("/"); }; return (
TurTask
{isAuthenticated ? (
) : (
)}
); } export default NavBar;