function Tree({ className, noRoot, withNodeBorder, ...props }) {
	const treeClassNames = classNames(theme['tc-tree'], 'tc-tree', className);
	const recursiveTree = args => <Tree {...props} {...args} level={props.level + 1} />;
	if (isRoot(props.level)) {
		if (noRoot) {
			return <TreeNodeList {...props} recursive={recursiveTree} treeClassName={treeClassNames} />;
		}
		return (
			<TreeNode
				{...props}
				recursive={recursiveTree}
				className={treeClassNames}
				dataKey={props.dataKey || 0}
				index={props.index || 0}
			/>
		);
	}
	return (
		<TreeNodeList
			{...props}
			recursive={recursiveTree}
			treeClassName={classNames(theme['tc-tree-list'], 'tc-tree-list')}
			nodeClassName={classNames({
				[theme['tc-tree-node-border']]: withNodeBorder,
				'tc-tree-node-border': withNodeBorder,
			})}
		/>
	);
}
/**
 * Create a generic tree.
 * Css customization with border available.
 */
Create a generic tree.
Css customization with border available.
Create a generic tree . Css customization with border available .
function Tree({ className, noRoot, withNodeBorder, ...props }) {
	const treeClassNames = classNames(theme['tc-tree'], 'tc-tree', className);
	const recursiveTree = args => <Tree {...props} {...args} level={props.level + 1} />;
	if (isRoot(props.level)) {
		if (noRoot) {
			return <TreeNodeList {...props} recursive={recursiveTree} treeClassName={treeClassNames} />;
		}
		return (
			<TreeNode
				{...props}
				recursive={recursiveTree}
				className={treeClassNames}
				dataKey={props.dataKey || 0}
				index={props.index || 0}
			/>
		);
	}
	return (
		<TreeNodeList
			{...props}
			recursive={recursiveTree}
			treeClassName={classNames(theme['tc-tree-list'], 'tc-tree-list')}
			nodeClassName={classNames({
				[theme['tc-tree-node-border']]: withNodeBorder,
				'tc-tree-node-border': withNodeBorder,
			})}
		/>
	);
}
function Tree ( { className , noRoot , withNodeBorder , ... props } ) { const treeClassNames = classNames ( theme [ 'tc-tree' ] , 'tc-tree' , className ) ; const recursiveTree = args => < Tree { ... props } { ... args } level = { props . level + 1 } / > ; if ( isRoot ( props . level ) ) { if ( noRoot ) { return < TreeNodeList { ... props } recursive = { recursiveTree } treeClassName = { treeClassNames } / > ; } return ( < TreeNode { ... props } recursive = { recursiveTree } className = { treeClassNames } dataKey = { props . dataKey || 0 } index = { props . index || 0 } / > ) ; } return ( < TreeNodeList { ... props } recursive = { recursiveTree } treeClassName = { classNames ( theme [ 'tc-tree-list' ] , 'tc-tree-list' ) } nodeClassName = { classNames ( { [ theme [ 'tc-tree-node-border' ] ] : withNodeBorder , 'tc-tree-node-border' : withNodeBorder , } ) } / > ) ; }
Create a generic tree.
Create a generic tree .