12 lines
318 B
TypeScript
12 lines
318 B
TypeScript
|
import { GetStaticProps } from "next";
|
||
|
|
||
|
import { getCurrentTerm, getEventsPageProps } from "@/lib/events";
|
||
|
|
||
|
import Term, { Props } from "./[year]/[term]/index";
|
||
|
|
||
|
export default Term;
|
||
|
|
||
|
export const getStaticProps: GetStaticProps<Props> = async () => {
|
||
|
return { props: await getEventsPageProps(getCurrentTerm()) };
|
||
|
};
|