0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-11-05 09:58:00 +09:00
yude.jp/pages/mutual.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

// Base layout
2021-06-15 07:15:32 +09:00
import Layout from "./components/Layout"
// i18n
2021-06-15 07:15:32 +09:00
import useTranslation from 'next-translate/useTranslation'
// React Router etc.
2021-06-15 07:15:32 +09:00
import { useRouter } from 'next/router'
import React from "react"
// React Markdown
2021-06-15 07:15:32 +09:00
import ReactMarkdown from "react-markdown"
import gfm from 'remark-gfm';
import ja from '../docs/mutual/ja.md'
import en from '../docs/mutual/en.md'
// next-seo
import { NextSeo } from 'next-seo';
2021-06-15 07:15:32 +09:00
export default function Tos(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("common")
return(
<>
<NextSeo
title="相互リンク"
description="yude.jp と相互にリンクを貼っている Web サイトの一覧"
/>
<Layout title={t('common:mutual')}>
<div>
{lang === 'ja' ? (
2021-09-22 07:43:10 +09:00
<ReactMarkdown plugins={[gfm]}>
{ja}
</ReactMarkdown>
) : (
2021-09-22 07:43:10 +09:00
<ReactMarkdown plugins={[gfm]}>
{en}
</ReactMarkdown>
)}
</div>
</Layout>
</>
2021-06-15 07:15:32 +09:00
)
}