"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.Icon = void 0;
var _react = _interopRequireDefault(require("react"));
var _ListItemAction = require("../../ListItemAction.constants");
var _ListItemActionSt = require("../../ListItemAction.st.css.js");
var Icon = _ref => {
  var {
    suffixIcon,
    size,
    subtitle
  } = _ref;
  return /*#__PURE__*/_react.default.cloneElement(suffixIcon, {
    size: size === 'medium' ? 24 : 18,
    className: (0, _ListItemActionSt.st)(_ListItemActionSt.classes.suffixIcon, {
      subtitle: Boolean(subtitle)
    }),
    'data-hook': _ListItemAction.DATA_HOOK.suffixIcon
  });
};
exports.Icon = Icon;
//# sourceMappingURL=SuffixIcon.js.map