mirror of
https://github.com/yude-jp/yude.jp
synced 2024-11-17 02:52:38 +09:00
21 lines
662 B
JavaScript
21 lines
662 B
JavaScript
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';
|
|
import input from '../docs/test.md'
|
|
|
|
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>
|
|
)
|
|
} |