import type { Query } from "corvos/mod.ts"; import { getGenerator, type Select } from "corvos/mod.ts"; import site from "@/corvos.config.ts"; import { SiteFooter } from "../components/SiteFooter.tsx"; import { SiteNav } from "../components/SiteNav.tsx"; import { Lightbox } from "../objects/Lightbox.tsx"; export interface Props { page: Select; pages: Query>; image?: string; theme?: "l1" | "l2" | null; children?: JSX.Element; class?: unknown; } export const BaseLayout = async ({ page, pages, theme = "l1", image: imageUrl, children, class: cls, }: Props) => { const stylesheet = await site.load("styles/style.scss").one(); const script = await site.load("scripts/script.ts").one(); const fonts = await site.glob("assets/**.woff2").array(); const favicon = await site.load("assets/favicon.svg").one(); const image = await site .load(imageUrl ?? "https://strapi.volpeon.ink/uploads/icon_7999cf625e.png") .one(); const feeds = await pages.type(".rss").array(); return ( <> {{ __html: "" }} {fonts.map((font) => ( ))}