import { useContext } from "react";
import { Container } from "react-bootstrap";
import MyNavbar from "../components/MyNavbar";
import UserContext from "../contexts/UserContext";

const HomePage = () => {
  const { currentUser } = useContext(UserContext);

  return (
    <div>
      <MyNavbar />
      <Container className="p-5">
        <div>
          <h1>Welcome back {currentUser?.username}!</h1>
        </div>
      </Container>
    </div>
  );
};

export default HomePage;
