import {DEPLOYED_WEB_URL, endTitle} from 'common/envs/constants' import {removeUndefinedProps} from 'common/util/object' import {buildOgUrl} from 'common/util/og' import Head from 'next/head' export function SEO
>(props: { title: string description: string url?: string ogProps?: {props: P; endpoint: string} image?: string }) { const {title, description, url, image, ogProps} = props const imageUrl = image ?? (ogProps && buildOgUrl(removeUndefinedProps(ogProps.props) as any, ogProps.endpoint)) const absUrl = DEPLOYED_WEB_URL + url const fullTitle = `${title} | ${endTitle}` return (