@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
32 lines • 753 B
JavaScript
import { c as _c } from "react-compiler-runtime";
import classNames from "classnames";
import { forwardRef } from "react";
import { jsx as _jsx } from "react/jsx-runtime";
const MenuItem = /*#__PURE__*/forwardRef((props, ref) => {
const $ = _c(6);
let t0;
if ($[0] !== props.className) {
t0 = classNames("bf-menu-item", props.className);
$[0] = props.className;
$[1] = t0;
} else {
t0 = $[1];
}
let t1;
if ($[2] !== props || $[3] !== ref || $[4] !== t0) {
t1 = /*#__PURE__*/_jsx("div", {
...props,
ref: ref,
className: t0
});
$[2] = props;
$[3] = ref;
$[4] = t0;
$[5] = t1;
} else {
t1 = $[5];
}
return t1;
});
MenuItem.displayName = "Menu.Item";
export default MenuItem;