import React from 'react'; import Head from 'next/head'; import { menuOptions } from 'lib/lang'; import useLocale from 'hooks/useLocale'; import MenuButton from 'components/common/MenuButton'; import Globe from 'assets/globe.svg'; export default function LanguageButton() { const [locale, setLocale] = useLocale(); function handleSelect(value) { setLocale(value); } return ( <>
{locale === 'zh-CN' && ( )} {locale === 'ja-JP' && ( )}