0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-23 04:30:11 +09:00
yude.jp/pages/hcunews.js

27 lines
855 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")
const hcunews = t('hcunews')
return(
<Layout title={hcunews}>
<div>
<h1>{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>
)
}