import { type PageProps } from "$fresh/server.ts"; import { Partial } from "$fresh/runtime.ts"; import { container } from "#/lib/container.ts"; import { ConfigLoader } from "#/lib/config/index.ts"; import { createContext } from "preact" import type { Config } from "#/lib/config/types.ts"; const configLoader = container.get(ConfigLoader); const config = configLoader.config() export const ConfigContext = createContext(config) export default function App({ Component }: PageProps) { const config = configLoader.config() return ( {config.title || "new tab"} { config.favicon && } ); }