import { html, css, sanitize } from '../templater.js' import { NavBar } from '../components/NavBar.js' import base from '../styles/base.js' const body = async (ctx, { path, title }) => html`

Title: ${sanitize(title)}

${await ctx.b(NavBar, { path })}
` const styles = css` header { display: flex; align-items: center; } ` export async function Header (ctx, { path, title }) { ctx.css.add(styles) ctx.body = await body(ctx, { path, title }) return ctx }