"use strict";

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