mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-23 15:24:21 +00:00
21 lines
409 B
TypeScript
21 lines
409 B
TypeScript
|
import * as React from "react"
|
||
|
import {Box, Code} from "@steffo/bluelib-react";
|
||
|
|
||
|
|
||
|
export interface DebugBoxProps {
|
||
|
[key: string]: any,
|
||
|
}
|
||
|
|
||
|
|
||
|
export function DebugBox(props: DebugBoxProps): JSX.Element {
|
||
|
return (
|
||
|
<Box todo={true}>
|
||
|
<Code>
|
||
|
<pre>
|
||
|
{JSON.stringify(props, undefined, 4)}
|
||
|
</pre>
|
||
|
</Code>
|
||
|
</Box>
|
||
|
)
|
||
|
}
|