import { resolveToRoot } from "../path" import { StaticResources } from "../resources" export interface HeadProps { title: string description: string slug: string externalResources: StaticResources } export default function({ title, description, slug, externalResources }: HeadProps) { const { css, js } = externalResources const baseDir = resolveToRoot(slug) const iconPath = baseDir + "/static/icon.png" const ogImagePath = baseDir + "/static/og-image.png" return {title} {css.map(href => )} {js.filter(resource => resource.loadTime === "beforeDOMReady").map(resource =>