UNPKG

@carbon/react

Version:

React components for the Carbon Design System

35 lines (33 loc) 1.41 kB
/** * Copyright IBM Corp. 2016, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ const require_runtime = require("../../_virtual/_rolldown/runtime.js"); const require_warning = require("../../internal/warning.js"); const require_index = require("../FeatureFlags/index.js"); const require_index$1 = require("../OverflowMenu/index.js"); let react = require("react"); react = require_runtime.__toESM(react); let react_jsx_runtime = require("react/jsx-runtime"); //#region src/components/OverflowMenuV2/index.js /** * Copyright IBM Corp. 2020, 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. */ let didWarnAboutDeprecation = false; function OverflowMenuV2(props) { if (process.env.NODE_ENV !== "production") { require_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."); didWarnAboutDeprecation = true; } return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.FeatureFlags, { enableV12Overflowmenu: true, children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.default, { ...props }) }); } //#endregion exports.OverflowMenuV2 = OverflowMenuV2;