UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

22 lines (21 loc) • 795 B
"use strict"; 'use client'; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.TreeItemLoaderContext = void 0; var React = _interopRequireWildcard(require("react")); /** * Provides the layout information of the surrounding tree to `TreeItemLoader`. * The loading UI renders outside of the tree items, so the depth and height * cannot be derived from an item. * * @ignore - internal context. */ const TreeItemLoaderContext = exports.TreeItemLoaderContext = /*#__PURE__*/React.createContext({ itemDepth: 0, itemHeight: null, isCheckboxSelectionEnabled: false }); if (process.env.NODE_ENV !== "production") TreeItemLoaderContext.displayName = "TreeItemLoaderContext";