import Head from 'next/head' import React from 'react' import * as types from 'lib/types' import * as config from 'lib/config' export const PageHead: React.FC< types.PageProps & { title?: string description?: string image?: string url?: string } > = ({ site, title, description, image, url }) => { title = title ?? site?.name description = description ?? site?.description return (
{site && ( <> > )} {config.twitter && ( )} {description && ( <> > )} {image ? ( <> > ) : ( )} {url && ( <> > )}