2021-09-22 07:24:00 +09:00
|
|
|
// Base layout
|
2021-05-27 10:03:44 +09:00
|
|
|
import Layout from "./components/Layout"
|
2021-09-22 07:24:00 +09:00
|
|
|
|
2021-12-11 18:07:22 +09:00
|
|
|
// i18n
|
|
|
|
import { useTranslation, useLanguageQuery, LanguageSwitcher } from 'next-export-i18n';
|
|
|
|
|
|
|
|
// React
|
2021-05-27 10:03:44 +09:00
|
|
|
import React from "react"
|
|
|
|
import ReactMarkdown from "react-markdown"
|
2021-09-22 07:24:00 +09:00
|
|
|
|
|
|
|
// Markdown
|
2021-05-27 10:03:44 +09:00
|
|
|
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
|
|
|
|
2021-09-22 07:24:00 +09:00
|
|
|
export default function HcuNews() {
|
2021-12-11 18:17:20 +09:00
|
|
|
const { t } = useTranslation();
|
2021-12-11 18:55:57 +09:00
|
|
|
const [query] = useLanguageQuery();
|
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' ? (
|
2021-09-22 07:43:10 +09:00
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{ja}
|
|
|
|
</ReactMarkdown>
|
2021-05-27 10:31:55 +09:00
|
|
|
) : (
|
2021-09-22 07:43:10 +09:00
|
|
|
<ReactMarkdown plugins={[gfm]}>
|
|
|
|
{en}
|
|
|
|
</ReactMarkdown>
|
2021-05-27 10:31:55 +09:00
|
|
|
)}
|
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
|
|
|
}
|