import React from "react";
import MenuIcon from "@mui/icons-material/Menu";
import Weather from "../pages/main/Weather.jsx";
import PersonIcon from "@mui/icons-material/Person";

function Header({ title }) {

  const [headerData, setHeaderData] = React.useState(0);

  return (
    <header>
      <div className="header-flex flex flex-align">
        <div className="page-title flex flex-align">
          {/* <MenuIcon /> */}
          <div className="info-wrap flex">
            <div className="usericon"><PersonIcon sx={{ width:48, height:48,}} /></div>
            <p className="header-info-id">admin1</p>
            <div className="bottom-section flex">
              <div className="info-id" onClick={() => {
                navigate("/Join");
              }}><span>계정추가</span></div>
              <div className="logout"><span>로그아웃</span></div>
            </div>
          </div>
          {/* <span>{title}</span> */}
        </div>
        <Weather />
      </div>
    </header>
  );
}

export default Header;
