mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-23 07:14:21 +00:00
20 lines
409 B
TypeScript
20 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>
|
|
)
|
|
}
|