1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-25 17:49:37 +01:00
deka-dom-el/docs_src/layout/simplePage.html.js

17 lines
433 B
JavaScript
Raw Normal View History

2023-11-24 16:16:08 +01:00
import "../global.css.js";
import { el, simulateSlots } from "deka-dom-el";
import { header } from "./head.html.js";
import { prevNext } from "../components/pageUtils.html.js";
2023-12-17 13:22:58 +01:00
/** @param {Pick<import("../types.d.ts").PageAttrs, "pkg" | "info">} attrs */
2023-11-24 16:16:08 +01:00
export function simplePage({ pkg, info }){
return simulateSlots(el().append(
el(header, { info, pkg }),
el("main").append(
el("slot"),
el(prevNext, info)
)
));
}