import { useState } from 'react'; import { ParentSize } from '../..'; import type { BaseProp, TreeProps } from './models'; import { Tree } from './Tree'; export const StandaloneTree = ({ tree, ...props }: Omit< TreeProps, 'containerHeight' | 'containerWidth' >): JSX.Element => { const [currentTree, setTree] = useState(tree); return ( {({ width, height }) => ( Tree )} ); };