2022-07-07 23:42:38 +00:00
|
|
|
import { GetStaticProps } from "next";
|
|
|
|
import { useMemo } from "react";
|
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-22 14:24:16 +00:00
|
|
|
import { Icon } from "components/Ico";
|
2021-11-06 16:47:20 +00:00
|
|
|
|
2022-07-03 12:34:00 +00:00
|
|
|
/*
|
|
|
|
* ╭────────╮
|
|
|
|
* ──────────────────────────────────────────╯ PAGE ╰─────────────────────────────────────────────
|
|
|
|
*/
|
|
|
|
|
2022-04-03 08:34:21 +00:00
|
|
|
interface Props extends AppStaticProps {}
|
2022-02-12 10:02:22 +00:00
|
|
|
|
2022-07-03 12:34:00 +00:00
|
|
|
const Chronicles = ({ langui, ...otherProps }: Props): JSX.Element => {
|
2022-06-22 22:39:59 +00:00
|
|
|
const subPanel = useMemo(
|
|
|
|
() => (
|
|
|
|
<SubPanel>
|
|
|
|
<PanelHeader
|
|
|
|
icon={Icon.WatchLater}
|
|
|
|
title={langui.chronicles}
|
|
|
|
description={langui.chronicles_description}
|
|
|
|
/>
|
|
|
|
</SubPanel>
|
|
|
|
),
|
|
|
|
[langui]
|
2021-11-13 20:26:18 +00:00
|
|
|
);
|
2022-06-22 22:39:59 +00:00
|
|
|
|
2022-02-21 00:01:27 +00:00
|
|
|
return (
|
2022-07-03 12:34:00 +00:00
|
|
|
<AppLayout
|
|
|
|
navTitle={langui.chronicles}
|
|
|
|
subPanel={subPanel}
|
|
|
|
langui={langui}
|
|
|
|
{...otherProps}
|
|
|
|
/>
|
2022-02-21 00:01:27 +00:00
|
|
|
);
|
2022-07-03 12:34:00 +00:00
|
|
|
};
|
|
|
|
export default Chronicles;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ╭──────────────────────╮
|
|
|
|
* ───────────────────────────────────╯ NEXT DATA FETCHING ╰──────────────────────────────────────
|
|
|
|
*/
|
2022-02-12 10:02:22 +00:00
|
|
|
|
2022-07-03 12:34:00 +00:00
|
|
|
export const getStaticProps: GetStaticProps = async (context) => {
|
2022-04-03 08:34:21 +00:00
|
|
|
const props: Props = {
|
2022-03-07 14:50:00 +00:00
|
|
|
...(await getAppStaticProps(context)),
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
props: props,
|
|
|
|
};
|
2022-07-03 12:34:00 +00:00
|
|
|
};
|