2021-12-11 18:07:22 +09:00
|
|
|
// Base layout
|
2021-05-23 16:02:08 +09:00
|
|
|
import Layout from "./components/Layout"
|
2021-12-11 18:07:22 +09:00
|
|
|
|
|
|
|
// i18n
|
|
|
|
import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n';
|
|
|
|
const { t } = useTranslation();
|
|
|
|
const [query] = useLanguageQuery();
|
|
|
|
|
|
|
|
// Next.js, React
|
2021-05-23 16:02:08 +09:00
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
import React from "react"
|
2021-12-11 18:07:22 +09:00
|
|
|
|
|
|
|
// React Markdown
|
2021-05-23 16:02:08 +09:00
|
|
|
import ReactMarkdown from "react-markdown"
|
|
|
|
import gfm from 'remark-gfm';
|
2021-05-27 10:26:11 +09:00
|
|
|
import ja from '../docs/tos/ja.md'
|
|
|
|
import en from '../docs/tos/en.md'
|
2021-05-23 16:02:08 +09:00
|
|
|
|
|
|
|
export default function Tos(props) {
|
|
|
|
return(
|
2021-06-14 12:36:18 +09:00
|
|
|
<Layout title={t('tos')}>
|
2021-05-26 07:53:02 +09:00
|
|
|
<div>
|
2021-09-22 07:43:10 +09:00
|
|
|
{lang === 'ja' ? (
|
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{ja}
|
|
|
|
</ReactMarkdown>
|
|
|
|
) : (
|
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{en}
|
|
|
|
</ReactMarkdown>
|
|
|
|
)}
|
2021-05-23 16:02:08 +09:00
|
|
|
</div>
|
|
|
|
</Layout>
|
|
|
|
)
|
|
|
|
}
|