UNPKG

@carbon/react

Version:

React components for the Carbon Design System

25 lines (23 loc) 929 B
/** * 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. */ import { warning } from "../../internal/warning.js"; import { FeatureFlags } from "../FeatureFlags/index.js"; import OverflowMenu from "../OverflowMenu/index.js"; import "react"; import { jsx } from "react/jsx-runtime"; //#region src/components/OverflowMenuV2/index.js let didWarnAboutDeprecation = false; function OverflowMenuV2(props) { 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__ */ jsx(FeatureFlags, { enableV12Overflowmenu: true, children: /* @__PURE__ */ jsx(OverflowMenu, { ...props }) }); } //#endregion export { OverflowMenuV2 };