@carbon/react
Version:
React components for the Carbon Design System
27 lines (22 loc) • 994 B
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.
*/
;
var React = require('react');
var warning = require('../../internal/warning.js');
var index = require('../FeatureFlags/index.js');
var index$1 = require('../OverflowMenu/index.js');
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.createElement(index.FeatureFlags, {
enableV12Overflowmenu: true
}, /*#__PURE__*/React.createElement(index$1.default, props));
}
exports.OverflowMenuV2 = OverflowMenuV2;