import { QuartzComponent, QuartzComponentConstructor } from "./types" export type GameCultGraphSpaShellOptions = { stylesheetHref: string moduleSrc: string rootClassName?: string config?: { title?: string architectureDescription?: string allowedSlugPrefixes?: string[] blockedSlugPrefixes?: string[] blockedPathSegments?: string[] } } export default ((options?: Partial) => { const shellOptions: GameCultGraphSpaShellOptions = { stylesheetHref: "/static/epiphany-graph/assets/viewer.css", moduleSrc: "/static/epiphany-graph/assets/viewer.js", rootClassName: "gamecult-epiphany-graph-root", ...options, } const GameCultGraphSpaShell: QuartzComponent = () => ( <>
{shellOptions.config ? ( ) return GameCultGraphSpaShell }) satisfies QuartzComponentConstructor | undefined>