import html from '../lib/html.ts'
export default ({ content, css, head, preload, script, state }) => html`
${css?.map((href) => ``)}
${preload?.map((href) => ``)}
${head?.then((head) => head.title)}
${head?.then((head) =>
head.tags?.map(
(tag) =>
`<${tag.type} ${Object.entries(tag.attributes)
.map(([name, content]) => `${name}='${content}'`)
.join(' ')}/>`,
),
)}
${content}
${state?.then((state) => ``)}
`