blob: 6bb1a551b2be8076a829df91be1c6c0337832248 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import { getLayout } from '@components/Layouts/Layout';
import ToC from '@components/ToC/ToC';
import { seo } from '@config/seo';
import { NextPageWithLayout } from '@ts/types/app';
import { loadTranslation } from '@utils/helpers/i18n';
import { GetStaticProps, GetStaticPropsContext } from 'next';
import Head from 'next/head';
import LegalNoticeContent, { meta } from '@content/pages/legal-notice.mdx';
const LegalNotice: NextPageWithLayout = () => {
return (
<>
<Head>
<title>{seo.legalNotice.title}</title>
<meta name="description" content={seo.legalNotice.description} />
</Head>
<article>
<header>
<h1>{meta.title}</h1>
</header>
<ToC />
<LegalNoticeContent />
</article>
</>
);
};
LegalNotice.getLayout = getLayout;
export const getStaticProps: GetStaticProps = async (
context: GetStaticPropsContext
) => {
const translation = await loadTranslation(
context.locale!,
process.env.NODE_ENV === 'production'
);
const breadcrumbTitle = meta.title;
return {
props: {
breadcrumbTitle,
translation,
},
};
};
export default LegalNotice;
|