// next import Head from "next/head"; import { useRouter } from "next/router"; // types import type { Props } from "./types"; // constants import { SITE_NAME, SITE_DESCRIPTION, SITE_URL, TWITTER_USER_NAME, SITE_KEYWORDS, SITE_TITLE, } from "constants/seo/seo-variables"; const Container = ({ meta, children }: Props) => { const router = useRouter(); const image = meta?.image || "/site-image.png"; const title = meta?.title || SITE_TITLE; const url = meta?.url || `${SITE_URL}${router.asPath}`; const description = meta?.description || SITE_DESCRIPTION; return ( <>