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