import { html } from "https://esm.town/v/neverstew/html";
import type { VNode } from "npm:preact";
export const htmlResponse = (htmlNode: VNode, options?: ResponseInit) =>
new Response(
html(htmlNode),
{
...options,
headers: {
"Content-Type": "text/html",
...options?.headers,
},
},
);