import Link from 'next/link' import { useRouter } from 'next/router' export default function Page(props) { const router = useRouter() const { nextLocale } = router.query return ( <>
links page
{JSON.stringify(props)}
{router.locale}
{router.defaultLocale}
{JSON.stringify(router.locales)}
{JSON.stringify(router.query)}
{router.pathname}
{router.asPath}
to /another