0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-10-13 03:38:36 +09:00

[/minecraft/players/] Add basic function to retrieve player's data

This commit is contained in:
2021-09-24 09:15:03 +09:00
parent b0b900cc10
commit b95c6b4cd5
5 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// Base layout
import Layout from "../../components/Layout"
// i18n
import useTranslation from 'next-translate/useTranslation'
// React
import { useRouter } from 'next/router'
// Data fetching
import UUIDCheck from '../../components/Minecraft/UUIDCheck'
export default function Players() {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("index")
const { uuid } = router.query
return (
<>
<Layout title={t('home')}>
<UUIDCheck uuid={uuid} />
</Layout>
</>
)
}