0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-11-18 03:20:09 +09:00
yude.jp/pages/hcunews.js

27 lines
829 B
JavaScript
Raw Normal View History

2021-05-27 10:03:44 +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-27 10:31:55 +09:00
import ja from '../docs/hcunews/ja.md'
import en from '../docs/hcunews/en.md'
2021-05-27 10:03:44 +09:00
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("hcunews")
2021-06-14 12:36:18 +09:00
2021-05-27 10:03:44 +09:00
return(
2021-06-14 12:36:18 +09:00
<Layout title={t('hcunews')}>
2021-05-27 10:03:44 +09:00
<div>
2021-06-14 12:36:18 +09:00
<h1>{t('hcunews')}</h1>
2021-05-27 10:31:55 +09:00
{lang === 'ja' ? (
<ReactMarkdown plugins={[gfm]} children={ja} />
) : (
<ReactMarkdown plugins={[gfm]} children={en} />
)}
2021-05-27 10:03:44 +09:00
</div>
</Layout>
2021-06-14 12:36:18 +09:00
)
2021-05-27 10:03:44 +09:00
}