import React from 'react' import Head from 'next/head' import { useRouter } from 'next/router' import { useTranslation } from 'next-i18next' import generateTitle from '~utils/generateTitle' interface Props { party: Party meta: { [key: string]: string } } const PartyHead = ({ party, meta }: Props) => { // Import translations const { t } = useTranslation('common') // Set up router const router = useRouter() const locale = router.locale && ['en', 'ja'].includes(router.locale) ? router.locale : 'en' return (
{/* HTML */}