www-new/pages/events/index.tsx

12 lines
318 B
TypeScript
Raw Normal View History

2021-08-19 11:14:06 -04:00
import { GetStaticProps } from "next";
2021-08-27 18:13:51 -04:00
import { getCurrentTerm, getEventsPageProps } from "@/lib/events";
2021-08-27 17:57:16 -04:00
import Term, { Props } from "./[year]/[term]/index";
2021-08-18 17:57:09 -04:00
2021-08-19 11:14:06 -04:00
export default Term;
export const getStaticProps: GetStaticProps<Props> = async () => {
2021-08-27 18:13:51 -04:00
return { props: await getEventsPageProps(getCurrentTerm()) };
2021-08-19 11:14:06 -04:00
};