import React from "react";

import { useAuth } from "../hooks";
import { DatePicker } from "antd";
import { FormCreateItem } from "../components/form/formCreateItem";
import { FormCreateRoom } from "../components/form/formCreateRoom";
import { ItemPage } from "../components/item/ItemPage";

export const Home = () => {
  const { user } = useAuth();
  return (
    <div>

      <h1>Home page</h1>
      {user && <h2>Hello {user.user.username}</h2>}

      <FormCreateRoom></FormCreateRoom>
      <FormCreateItem></FormCreateItem>
    </div>
  );
};
