0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-11-16 10:32:40 +09:00
yude.jp/pages/tos.js

36 lines
870 B
JavaScript
Raw Normal View History

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';
// 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) {
2021-12-11 18:55:57 +09:00
const { t } = useTranslation();
const [query] = useLanguageQuery();
2021-05-23 16:02:08 +09:00
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>
)
}