mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 15:08:44 -05:00
12 lines
391 B
TypeScript
12 lines
391 B
TypeScript
import { XTrendsPageProps } from "app/xrank/components/XTrendsPage";
|
|
import xRankService from "app/xrank/service";
|
|
import { GetStaticProps } from "next";
|
|
|
|
export { default as default } from "app/xrank/components/XTrendsPage";
|
|
|
|
export const getStaticProps: GetStaticProps<XTrendsPageProps> = async () => {
|
|
const trends = await xRankService.getXTrends();
|
|
|
|
return { props: { trends } };
|
|
};
|