UNPKG

@carbon/react

Version:

React components for the Carbon Design System

35 lines (33 loc) 1.25 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_index = require("../FeatureFlags/index.js"); const require_index$1 = require("./next/index.js"); const require_OverflowMenu = require("./OverflowMenu.js"); let react = require("react"); react = require_runtime.__toESM(react); let react_jsx_runtime = require("react/jsx-runtime"); //#region src/components/OverflowMenu/index.tsx /** * 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 OverflowMenu = (0, react.forwardRef)((props, ref) => { return require_index.useFeatureFlag("enable-v12-overflowmenu") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index$1.OverflowMenu, { ...props, ref }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_OverflowMenu.default, { ...props, ref }); }); OverflowMenu.displayName = "OverflowMenu"; OverflowMenu.propTypes = require_OverflowMenu.default.propTypes; //#endregion exports.default = OverflowMenu;