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

21 lines
661 B
JavaScript
Raw Normal View History

2021-05-23 16:02:08 +09:00
import Layout from "./components/Layout"
import useTranslation from 'next-translate/useTranslation'
import { useRouter } from 'next/router'
import React from "react"
import ReactMarkdown from "react-markdown"
import gfm from 'remark-gfm';
2021-05-23 16:09:35 +09:00
import input from '../docs/tos.md'
2021-05-23 16:02:08 +09:00
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("tos")
const tos = t('tos')
return(
<Layout title={tos}>
<div className="mx-9">
<ReactMarkdown plugins={[gfm]} children={input} />
</div>
</Layout>
)
}