2022-05-25 14:20:22 +00:00
|
|
|
import type { NextPage, NextPageContext } from 'next'
|
|
|
|
import { useTranslation } from 'next-i18next'
|
|
|
|
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
|
|
|
|
|
|
|
|
export async function getStaticProps(context: NextPageContext) {
|
|
|
|
return {props: {
|
2022-05-25 15:03:53 +00:00
|
|
|
...(await serverSideTranslations(context.locale, ["common"]))
|
2022-05-25 14:20:22 +00:00
|
|
|
}}
|
|
|
|
}
|
2022-05-20 11:59:24 +00:00
|
|
|
|
2022-05-20 22:46:39 +00:00
|
|
|
const Page: NextPage = () => {
|
2022-05-25 14:20:22 +00:00
|
|
|
const {t} = useTranslation("common")
|
|
|
|
|
2022-05-20 22:46:39 +00:00
|
|
|
return (
|
2022-05-25 15:03:53 +00:00
|
|
|
<div className="index-layout">
|
|
|
|
<h1 class="index-title">
|
2022-05-25 14:20:22 +00:00
|
|
|
{t("title")}
|
|
|
|
</h1>
|
2022-05-25 15:03:53 +00:00
|
|
|
<h2>
|
2022-05-25 14:20:22 +00:00
|
|
|
{t("description")}
|
2022-05-25 15:03:53 +00:00
|
|
|
</h2>
|
2022-05-20 11:59:24 +00:00
|
|
|
</div>
|
2022-05-20 22:46:39 +00:00
|
|
|
)
|
2022-05-20 11:59:24 +00:00
|
|
|
}
|
|
|
|
|
2022-05-20 22:46:39 +00:00
|
|
|
export default Page
|