@trellixio/roaster-coffee
Version:
Beans' product component library
36 lines (30 loc) • 846 B
JavaScript
;
var React = require('react');
var index = require('../../utils/classNames/index.js');
require('@floating-ui/react');
function _interopNamespaceDefault(e) {
var n = Object.create(null);
if (e) {
for (var k in e) {
n[k] = e[k];
}
}
n.default = e;
return Object.freeze(n);
}
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
const Icon = React__namespace.forwardRef((props, ref) => {
const { color, children, small, hasTooltip, className, ...otherProps } = props;
return /* @__PURE__ */ React__namespace.createElement(
"span",
{
ref,
className: index.classNames("icon", color, { small }, hasTooltip ? "has-tooltip" : "", className),
...otherProps
},
children
);
});
Icon.displayName = "Icon";
exports.Icon = Icon;
//# sourceMappingURL=Icon.js.map