accords-library.com/src/pages/chronicles/index.tsx

36 lines
1.0 KiB
TypeScript
Raw Normal View History

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-04-03 08:34:21 +00:00
interface Props extends AppStaticProps {}
2022-05-08 19:37:41 +00:00
export default function Chronicles(props: Immutable<Props>): JSX.Element {
const { langui } = props;
const subPanel = (
<SubPanel>
<PanelHeader
icon="watch_later"
title={langui.chronicles}
2022-02-16 18:44:05 +00:00
description={langui.chronicles_description}
/>
</SubPanel>
);
return (
<AppLayout navTitle={langui.chronicles} subPanel={subPanel} {...props} />
);
}
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 = {
...(await getAppStaticProps(context)),
};
return {
props: props,
};
}