import React from "react";
import Head from "next/head";
import Timetable from "@/components/Timetable";
import UserInputWrap from "@/components/UserInputWrap";

export default function Home() {
  const [user, setUser] = React.useState("");

  return (
    <>
      <Head>
        <title>Create Next App</title>
        <meta name="description" content="Generated by create next app" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <link rel="icon" href="/favicon.ico" />
      </Head>
      <main>
        <UserInputWrap setUser={setUser}>
          <Timetable user={user} />
        </UserInputWrap>
      </main>
    </>
  );
}
