import { i18n } from "../../i18n" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types" import Graph from "../Graph" const NotFound: QuartzComponent = ({ cfg }: QuartzComponentProps) => { // If baseUrl contains a pathname after the domain, use this as the home link const url = new URL(`https://${cfg.baseUrl ?? "example.com"}`) const baseDir = url.pathname const GraphComponent = Graph({ localGraph: { depth: -1, // Shows all nodes scale: 0.9, // You might want to adjust scale for the full graph } }) return (

404

{i18n(cfg.locale).pages.error.notFound}

{i18n(cfg.locale).pages.error.home}

) } export default (() => NotFound) satisfies QuartzComponentConstructor