2023-08-06 21:29:26 -04:00
|
|
|
import { CollapsiblePanel, CollapsiblePanelProps } from './CollapsiblePanel'
|
2023-09-14 08:51:23 +10:00
|
|
|
import { AstExplorer } from './AstExplorer'
|
2023-07-21 16:53:06 +10:00
|
|
|
|
2023-08-06 21:29:26 -04:00
|
|
|
export const DebugPanel = ({ className, ...props }: CollapsiblePanelProps) => {
|
2023-07-21 16:53:06 +10:00
|
|
|
return (
|
2023-08-06 21:29:26 -04:00
|
|
|
<CollapsiblePanel
|
|
|
|
{...props}
|
2023-09-20 05:36:29 -04:00
|
|
|
className={
|
|
|
|
'!absolute overflow-hidden !h-auto bottom-5 right-5 ' + className
|
|
|
|
}
|
|
|
|
// header height, top-5, and bottom-5
|
|
|
|
style={{ maxHeight: 'calc(100% - 3rem - 1.25rem - 1.25rem)' }}
|
2023-08-06 21:29:26 -04:00
|
|
|
>
|
|
|
|
<section className="p-4 flex flex-col gap-4">
|
2023-09-14 08:51:23 +10:00
|
|
|
<div style={{ height: '400px' }} className="overflow-y-auto">
|
|
|
|
<AstExplorer />
|
|
|
|
</div>
|
2023-08-06 21:29:26 -04:00
|
|
|
</section>
|
|
|
|
</CollapsiblePanel>
|
2023-07-21 16:53:06 +10:00
|
|
|
)
|
|
|
|
}
|