import { SITE_DEFAULT_META, SITE_TITLE } from "./constants.js"; import { JSX } from "preact/jsx-runtime"; import { asset } from "../lib/assets.js"; type Props = { title?: string; meta?: { [name: string]: string }; } & ({ content: string } | { Content(): JSX.Element }); export default (props: Props) => { const metaTags = Object.entries(Object.assign({}, SITE_DEFAULT_META, props.meta || {})).map( ([name, value]) => , ); return (