import React from 'react'; import { TreeNodeContext } from './recursive-tree'; import { TreeProvider } from './tree-context'; import type { TreeNode as TreeNodeType, TreeNodeRenderer } from './recursive-tree'; import type { TreeContextType } from './tree-context'; import { RootNode } from './root-node'; export type TreeProps = { TreeNode: TreeNodeRenderer; tree: TreeNodeType; depth?: number; } & React.HTMLAttributes & TreeContextType; export function Tree({ TreeNode, tree, activePath, setActivePath, isCollapsed, setIsCollapsed, depth = 1, ...rest }: TreeProps) { return ( ); }