35 lines
1010 B
TypeScript
35 lines
1010 B
TypeScript
import AppLayout from "components/AppLayout";
|
|
import PanelHeader from "components/PanelComponents/PanelHeader";
|
|
import SubPanel from "components/Panels/SubPanel";
|
|
import { GetStaticPropsContext } from "next";
|
|
import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps";
|
|
|
|
interface ArchivesProps extends AppStaticProps {}
|
|
|
|
export default function Archives(props: ArchivesProps): JSX.Element {
|
|
const { langui } = props;
|
|
const subPanel = (
|
|
<SubPanel>
|
|
<PanelHeader
|
|
icon="inventory"
|
|
title={langui.archives}
|
|
description={langui.archives_description}
|
|
/>
|
|
</SubPanel>
|
|
);
|
|
return (
|
|
<AppLayout navTitle={langui.archives} subPanel={subPanel} {...props} />
|
|
);
|
|
}
|
|
|
|
export async function getStaticProps(
|
|
context: GetStaticPropsContext
|
|
): Promise<{ notFound: boolean } | { props: ArchivesProps }> {
|
|
const props: ArchivesProps = {
|
|
...(await getAppStaticProps(context)),
|
|
};
|
|
return {
|
|
props: props,
|
|
};
|
|
}
|