import {IS_PROD} 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 = 'https://compassmeet.com' + url const endTitle = IS_PROD ? 'Compass' : 'Compass dev' return ( {`${title} | ${endTitle}`} {url && } {url && } {url && (