You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
475 B
11 lines
475 B
import React from 'react';
|
|
import { DataNode, InnerDataNode, SimpleModeConfig } from '../interface';
|
|
/**
|
|
* Convert `treeData` or `children` into formatted `treeData`.
|
|
* Will not re-calculate if `treeData` or `children` not change.
|
|
*/
|
|
export default function useTreeData(treeData: DataNode[], children: React.ReactNode, { getLabelProp, simpleMode, }: {
|
|
getLabelProp: (node: DataNode) => React.ReactNode;
|
|
simpleMode: boolean | SimpleModeConfig;
|
|
}): InnerDataNode[];
|