@carbon/react
Version:
React components for the Carbon Design System
33 lines (31 loc) • 1.02 kB
JavaScript
/**
* 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 { useFeatureFlag } from "../FeatureFlags/index.js";
import { OverflowMenu as OverflowMenu$1 } from "./next/index.js";
import OverflowMenu$2 from "./OverflowMenu.js";
import { forwardRef } from "react";
import { jsx } from "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 = forwardRef((props, ref) => {
return useFeatureFlag("enable-v12-overflowmenu") ? /* @__PURE__ */ jsx(OverflowMenu$1, {
...props,
ref
}) : /* @__PURE__ */ jsx(OverflowMenu$2, {
...props,
ref
});
});
OverflowMenu.displayName = "OverflowMenu";
OverflowMenu.propTypes = OverflowMenu$2.propTypes;
//#endregion
export { OverflowMenu as default };