import type { Entity } from '@h5web/shared' ; import styles from './RawInspector.module.css' ; interface Props { entity : Entity ; } function RawInspector ( props ) { const { entity } = props ; return ( < details > < summary className = { styles . heading } > Inspect < /summary> < pre className = { styles . content } > { JSON . stringify ( entity , ( key , value ) => { return key !== 'parents' && key !== 'children' ? value : undefined ; } , 2 ) } < /pre> < /details>); } export default RawInspector ;