2021-08-27 18:37:42 -04:00
|
|
|
import { GetStaticProps } from "next";
|
|
|
|
|
2022-08-08 04:31:15 -04:00
|
|
|
import { getEventsPageProps } from "@/lib/events";
|
|
|
|
import { getCurrentTermYear } from "@/utils";
|
2021-08-27 18:37:42 -04:00
|
|
|
|
2022-01-19 20:19:13 -05:00
|
|
|
import TermPage, { Props } from "./[year]/[term]";
|
2021-08-27 18:37:42 -04:00
|
|
|
|
2022-01-19 20:19:13 -05:00
|
|
|
export default TermPage;
|
2021-08-27 18:37:42 -04:00
|
|
|
|
|
|
|
export const getStaticProps: GetStaticProps<Props> = async () => {
|
2022-08-08 04:31:15 -04:00
|
|
|
return { props: await getEventsPageProps(getCurrentTermYear()) };
|
2021-08-27 18:37:42 -04:00
|
|
|
};
|