UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

9 lines (8 loc) 404 B
import { createSelector } from "../../utils/selectors.js"; const selectorTreeViewIdState = state => state.id; /** * Get the id attribute of the tree view. * @param {TreeViewState<[UseTreeViewIdSignature]>} state The state of the tree view. * @returns {string} The id attribute of the tree view. */ export const selectorTreeViewId = createSelector(selectorTreeViewIdState, idState => idState.treeId);