UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

18 lines (17 loc) 1.07 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.NotRendered = NotRendered; var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage")); /** * This component is used to assert that a certain component should not be rendered. * It is used in cases where we want to apply styles to a component that is not rendered because we use the `as` prop (introduced by `styled`) to replace the rendered component. * We need it because we don't know the component that will be rendered at the time of writing the styles. * * @param _props Not used */ function NotRendered(_props) { throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Charts: Failed assertion - this component should not be rendered. ' + 'This is an internal component used for styling purposes only. ' + 'If you see this error, there may be a configuration issue with styled components.' : (0, _formatErrorMessage2.default)(31)); }