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

const ReportPage = () => {
  const [user, setUser] = React.useState("");
  const [begin, setBegin] = React.useState(false);
  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}
            disableConflictCheck={true}
            disableNetwork={true}
            apiRecordEndPoint="/api/regular"
            openRecordMode={true}
          />
        </UserInputWrap>
      </main>
    </>
  );
};

export default ReportPage;
