import { CollectionProxy, useCollectionInitialState } from 'onekijs-framework'; import TreeService from '../TreeService'; import { TreeItem, TreeState, UseTreeOptions } from '../typings'; const useTreeInitialState = >( dataSource: string | T[] | undefined | CollectionProxy, TreeService>>, options: UseTreeOptions, ): TreeState => { return useCollectionInitialState(dataSource, options); }; export default useTreeInitialState;