import { CodeHighlight } from "@mantine/code-highlight"; import { useSuspenseQuery } from "@tanstack/react-query"; export default function ConfigPage() { const { data: { data: { yaml }, }, } = useSuspenseQuery<{ data: { yaml: string } }>({ queryKey: ["config"], queryFn: () => { return fetch("/api/v1/status/config").then((res) => res.json()); }, }); return ( ); }