mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-23 09:09:38 +01:00
17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
import "../global.css.js";
|
|
import { el, simulateSlots } from "deka-dom-el";
|
|
|
|
import { header } from "./head.html.js";
|
|
import { prevNext } from "../components/pageUtils.html.js";
|
|
|
|
/** @param {Pick<import("../types.d.ts").PageAttrs, "pkg" | "info">} attrs */
|
|
export function simplePage({ pkg, info }){
|
|
return simulateSlots(el().append(
|
|
el(header, { info, pkg }),
|
|
el("main").append(
|
|
el("slot"),
|
|
el(prevNext, info)
|
|
)
|
|
));
|
|
}
|