mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-17 01:43:23 +02:00
19 lines
382 B
TypeScript
19 lines
382 B
TypeScript
import React, { ReactElement } from 'react'
|
|
|
|
export default function DebugOutput({
|
|
title,
|
|
output
|
|
}: {
|
|
title?: string
|
|
output: any
|
|
}): ReactElement {
|
|
return (
|
|
<div style={{ marginTop: 'var(--spacer)' }}>
|
|
{title && <h5>{title}</h5>}
|
|
<pre style={{ wordWrap: 'break-word' }}>
|
|
<code>{JSON.stringify(output, null, 2)}</code>
|
|
</pre>
|
|
</div>
|
|
)
|
|
}
|