2022-05-14 12:45:29 +00:00
|
|
|
import { AppLayout } from "components/AppLayout";
|
|
|
|
import { PanelHeader } from "components/PanelComponents/PanelHeader";
|
|
|
|
import { SubPanel } from "components/Panels/SubPanel";
|
2022-05-08 10:26:36 +00:00
|
|
|
import { AppStaticProps, getAppStaticProps } from "graphql/getAppStaticProps";
|
2022-05-08 19:37:41 +00:00
|
|
|
import { Immutable } from "helpers/types";
|
2022-05-10 20:37:13 +00:00
|
|
|
import { GetStaticPropsContext } from "next";
|
2022-05-22 14:24:16 +00:00
|
|
|
import { Icon } from "components/Ico";
|
2021-11-06 16:47:20 +00:00
|
|
|
|
2022-04-03 08:34:21 +00:00
|
|
|
interface Props extends AppStaticProps {}
|
2022-02-12 10:02:22 +00:00
|
|
|
|
2022-05-08 19:37:41 +00:00
|
|
|
export default function Chronicles(props: Immutable<Props>): JSX.Element {
|
2022-03-07 14:50:00 +00:00
|
|
|
const { langui } = props;
|
2022-02-15 14:50:51 +00:00
|
|
|
const subPanel = (
|
|
|
|
<SubPanel>
|
|
|
|
<PanelHeader
|
2022-05-22 14:24:16 +00:00
|
|
|
icon={Icon.WatchLater}
|
2022-03-05 14:36:43 +00:00
|
|
|
title={langui.chronicles}
|
2022-02-16 18:44:05 +00:00
|
|
|
description={langui.chronicles_description}
|
2022-02-15 14:50:51 +00:00
|
|
|
/>
|
|
|
|
</SubPanel>
|
2021-11-13 20:26:18 +00:00
|
|
|
);
|
2022-02-21 00:01:27 +00:00
|
|
|
return (
|
2022-03-07 14:50:00 +00:00
|
|
|
<AppLayout navTitle={langui.chronicles} subPanel={subPanel} {...props} />
|
2022-02-21 00:01:27 +00:00
|
|
|
);
|
2022-01-01 02:31:55 +00:00
|
|
|
}
|
2022-02-12 10:02:22 +00:00
|
|
|
|
2022-03-29 20:36:13 +00:00
|
|
|
export async function getStaticProps(
|
|
|
|
context: GetStaticPropsContext
|
2022-04-03 08:34:21 +00:00
|
|
|
): Promise<{ notFound: boolean } | { props: Props }> {
|
|
|
|
const props: Props = {
|
2022-03-07 14:50:00 +00:00
|
|
|
...(await getAppStaticProps(context)),
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
props: props,
|
|
|
|
};
|
2022-03-27 15:01:14 +00:00
|
|
|
}
|