// Base layout import Layout from "./components/Layout" // React Router etc. import React, { useState, useEffect } from 'react'; import { useRouter } from 'next/router' // i18n import useTranslation from 'next-translate/useTranslation' // Next.js import Image from 'next/image' import Link from 'next/link' // Custom pages import Minecraft from './components/Minecraft' // Font Awesome import { faMap, faCopy } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // React Markdown import ReactMarkdown from "react-markdown" import gfm from 'remark-gfm'; import ja from '../docs/minecraft/ja.md' import en from '../docs/minecraft/en.md' // next-seo import { NextSeo } from 'next-seo'; export default function About(props) { const router = useRouter() // i18n const { locale, locales, defaultLocale, pathname } = router const { t, lang } = useTranslation("minecraft") // Copy server address to clipboard const copyText = () => { navigator.clipboard.writeText("yude.jp"); }; return ( <> {t('title')} {t('address')}: yude.jp copyText()} > {t('version')}: 1.17 BlueMap {/* Load markdown contents */} {lang === 'ja' ? ( {ja} ) : ( {en} )} > ) }
{t('title')}
{t('address')}: yude.jp copyText()} >
yude.jp
{t('version')}: 1.17