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

35 lines
988 B
TypeScript
Raw Normal View History

2022-03-26 16:09:42 +00:00
import AppLayout from "components/AppLayout";
import PanelHeader from "components/PanelComponents/PanelHeader";
2022-03-26 16:09:42 +00:00
import SubPanel from "components/Panels/SubPanel";
import { GetStaticPropsContext } from "next";
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
2022-04-03 08:34:21 +00:00
interface Props extends AppStaticProps {}
2022-04-03 08:34:21 +00:00
export default function Chronicles(props: 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,
};
}