UNPKG

wix-style-react

Version:
22 lines (19 loc) 755 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["display", "children"]; import React from 'react'; import PropTypes from 'prop-types'; import { st, classes } from '../TableActionCell.st.css'; var HoverSlot = function HoverSlot(_ref) { var display = _ref.display, children = _ref.children, props = _objectWithoutProperties(_ref, _excluded); return /*#__PURE__*/React.createElement("span", _extends({ className: st(classes.hoverSlot, classes[display]) }, props), children); }; HoverSlot.propTypes = { display: PropTypes.oneOf(['always', 'onHover', 'notOnHover']), children: PropTypes.node }; export default HoverSlot;