interface Props extends React . HTMLAttributes < HTMLDivElement > { className ? : string ; } export const TreeNodeName = function TreeNodeName ( { className , children , ... rest } ) { return < div className = { className } { ... rest } > { children } < /div>; } ;