mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-22 11:11:02 -08:00
9fe8a5dba7
Signed-off-by: Julius Volz <julius.volz@gmail.com>
24 lines
508 B
TypeScript
24 lines
508 B
TypeScript
import { CodeHighlight } from "@mantine/code-highlight";
|
|
import { useSuspenseAPIQuery } from "../api/api";
|
|
import ConfigResult from "../api/responseTypes/config";
|
|
|
|
export default function ConfigPage() {
|
|
const {
|
|
data: {
|
|
data: { yaml },
|
|
},
|
|
} = useSuspenseAPIQuery<ConfigResult>({ path: `/status/config` });
|
|
|
|
return (
|
|
<CodeHighlight
|
|
code={yaml}
|
|
language="yaml"
|
|
miw="50vw"
|
|
w="fit-content"
|
|
maw="calc(100vw - 75px)"
|
|
mx="auto"
|
|
mt="xs"
|
|
/>
|
|
);
|
|
}
|