import React from "react"; import { Link, useLocation } from "react-router-dom"; import { useAuth } from "../auth/auth.context"; export const Header = () => { const { user, logout } = useAuth(); const location = useLocation(); return (
Simple Survey Form
{user.isLoggedIn ? (
) : (
)}
); };