import Base, { BaseI, content } from "./Base.js" import h from "./header.js" import { article } from "./html.js" import { c, node } from "./vdom.js" export interface PageI extends BaseI { title: string } export default function Page(data: Type): ReturnType> { const arg = { ...data, content() { var { title } = this return c(article, {}, c(h, { level: 1 }, title), c(content, { data }) ) } } return Base(arg) }