import BigCalendar from "@/components/calendar";
import { withTitle } from "@/constructors/Component";
import { UrlsTitle } from "@/enums/urls";
import { FunctionComponent } from "preact";

const ProfileCalendar: FunctionComponent = () => {
  const onDateSelect = (date: Date) => {
    console.log(date);
  };
  return (
    <div class="flex w-full flex-col items-center">
      <BigCalendar onDateSelect={onDateSelect} />
    </div>
  );
};

export default withTitle(UrlsTitle.CALENDAR, ProfileCalendar);
