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, user } = useAuth(); const [search, setSearch] = useState(""); const handleChange = (e: React.ChangeEvent) => { const newvalue = e.target.value; setSearch(newvalue); }; return (
{user.isLoggedIn ? (
프로필
) : ( )}
); }