import React from 'react'; import NextHead from 'next/head'; import { withTranslation } from '../i18n'; const defaultOGURL = ''; const defaultOGImage = ''; type Props = { t: (key: string) => string; title?: string; description?: string; url?: string; ogImage?: string; }; const Head: React.StatelessComponent = ({ t, title = 'title', description = 'description', url = '', ogImage = '', }: Props) => ( {t(title)} ); export default withTranslation('meta')(Head);