@carbon/react
Version:
React components for the Carbon Design System
33 lines (25 loc) • 1.28 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
;
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, {
enableV12Overflowmenu: true
}, /*#__PURE__*/React__default["default"].createElement(index$1["default"], props));
}
exports.OverflowMenuV2 = OverflowMenuV2;