import { defineApp, PageProps } from "$fresh/server.ts"; import { Head } from "../../../../runtime.ts"; import { Options } from "../route-plugin.ts"; export function AppBuilder(options: Options) { return options.async ? defineApp((_req, ctx) => { return ( <> {options.title}
foo
); }) : ({ Component }: PageProps) => { return ( <> {options.title}
); }; }