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 ? (
{location.pathname === "/profile" ? ( "" ) : ( 프로필 )}
) : (
로그인 회원가입
)}
); };