import React from 'react'; import JSONNestedNode from './JSONNestedNode'; import type { CommonInternalProps } from './types'; // Returns the "n Items" string for this node, // generating and caching it if it hasn't been created yet. function createItemString(data: unknown) { const len = Object.getOwnPropertyNames(data).length; return `${len} ${len !== 1 ? 'keys' : 'key'}`; } interface Props extends CommonInternalProps { data: unknown; nodeType: string; } // Configures to render an Object export default function JSONObjectNode({ data, ...props }: Props) { return ( 0} /> ); }