import React from 'react'; import { JSONNode } from './JSONNode'; const JSONTreeObjectNode = ({ data, path, ...restProps }) => { const nodeKeys = Object.keys(data); return nodeKeys.map((key, index) => { const currentPath = [...path, key]; const _currentNode = key; const props = { ...restProps }; props.currentNode = _currentNode; return ; }); }; export default JSONTreeObjectNode;