UNPKG

@mskcc/carbon-react

Version:

Carbon react components for the MSKCC DSM

32 lines (24 loc) 1.16 kB
/** * MSKCC 2021, 2024 */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var warning = require('../../internal/warning.js'); var index = require('../FeatureFlags/index.js'); var index$1 = require('../OverflowMenu/index.js'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); let didWarnAboutDeprecation = false; function OverflowMenuV2(props) { if (process.env.NODE_ENV !== "production") { process.env.NODE_ENV !== "production" ? warning.warning(didWarnAboutDeprecation, '`<OverflowMenuV2>` is deprecated and will be removed in the next major version. Use `<OverflowMenu>` with the `enable-v12-overflowmenu` feature flag instead.') : void 0; didWarnAboutDeprecation = true; } return /*#__PURE__*/React__default["default"].createElement(index.FeatureFlags, { flags: { 'enable-v12-overflowmenu': true } }, /*#__PURE__*/React__default["default"].createElement(index$1["default"], props)); } exports.OverflowMenuV2 = OverflowMenuV2;