import React, { useReducer, useState } from "react"; import { Link, Outlet } from "react-router-dom"; import { useAuth } from "../auth/auth.context"; import "tailwindcss/tailwind.css"; export default function Header() { const { logout } = useAuth(); return (
{useAuth().user.isLoggedIn ? (
프로필
) : ( )}
); }