UNPKG

@mui/x-tree-view

Version:

The community edition of the MUI X Tree View components.

34 lines (31 loc) • 1.14 kB
"use strict"; 'use client'; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.useTreeViewStyleContext = exports.TreeViewStyleContext = void 0; var React = _interopRequireWildcard(require("react")); /** * Slots stored in the style context. * The loading slots only exist on the components with a loading state, * so they are not part of the public `TreeViewSlots` interface. */ /** * Slot props stored in the style context. * The loading slot props only exist on the components with a loading state, * so they are not part of the public `TreeViewSlotProps` interface. */ /** * @ignore - internal component. */ const TreeViewStyleContext = exports.TreeViewStyleContext = /*#__PURE__*/React.createContext({ classes: {}, slots: {}, slotProps: {} }); if (process.env.NODE_ENV !== "production") TreeViewStyleContext.displayName = "TreeViewStyleContext"; const useTreeViewStyleContext = () => { return React.useContext(TreeViewStyleContext); }; exports.useTreeViewStyleContext = useTreeViewStyleContext;