| 1 | import { Panel } from './panel.tsx' |
| 2 | import type { JSX } from 'react' |
| 3 | import './console.css' |
| 4 | |
| 5 | interface ConsolePanelProps { |
| 6 | children: any[] | string |
| 7 | } |
| 8 | |
| 9 | export function ConsolePanel ({ children }: ConsolePanelProps): JSX.Element { |
| 10 | return ( |
| 11 | <Panel className='Console'> |
| 12 | <pre><code>{children}</code></pre> |
| 13 | </Panel> |
| 14 | ) |
| 15 | } |