import React from "react";
import { useRouter } from "next/router";
import dynamic from "next/dynamic";

// https://github.com/fullcalendar/fullcalendar-react/issues/17
const DynamicCalendar = dynamic(() => import("../../../components/Extras/calendar.view.js"), {
	ssr: false,
});

export default () => {
	const router = useRouter();
	return <DynamicCalendar query={router.query} />;
};
