function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import React from 'react';
import { default as Box } from '../../primitives/Box';
import { CheckIcon } from '../../primitives/Icon/Icons';

const SizedIcon = ({
  icon,
  _icon,
  isChecked
}) => {
  // console.log(_icon, icon, 'icon prop here');
  return isChecked ? icon ? /*#__PURE__*/React.cloneElement(icon, { ..._icon
  }) : /*#__PURE__*/React.createElement(CheckIcon, _icon) : /*#__PURE__*/React.createElement(Box, _extends({}, _icon, {
    boxSize: _icon.size
  }));
};

export default SizedIcon;
//# sourceMappingURL=SizedIcon.js.map