import NextHead from "next/head" import { getSiteDomain, getSiteName } from "../lib/env" import { useRouter } from "next/router" export interface MetaProps { title?: string description?: string image?: string type?: string robots?: string } const Head = ({ customMeta }: { customMeta?: MetaProps }) => { const router = useRouter() const meta: MetaProps = { title: getSiteName(), description: "Watch videos or play music in sync with your friends", type: "website", robots: "noindex, noarchive, follow", image: getSiteDomain() + "/apple-touch-icon.png", ...customMeta, } return ( {meta.title} {meta.image && } {meta.image && } ) } export default Head