UNPKG

@razorpay/blade

Version:

The Design System that powers Razorpay

45 lines (42 loc) 2.93 kB
import _defineProperty from '@babel/runtime/helpers/defineProperty'; import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties'; import '../_Svg/index.js'; import '../useIconProps/index.js'; import '../../../utils/assignWithoutSideEffects/index.js'; import { jsx } from 'react/jsx-runtime'; import useIconProps from '../useIconProps/useIconProps.js'; import Svg from '../_Svg/Svg/Svg.web.js'; import Path from '../_Svg/Path/Path.web.js'; import { assignWithoutSideEffects } from '../../../utils/assignWithoutSideEffects/assignWithoutSideEffects.js'; var _excluded = ["size", "color"]; function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } var _AwardIcon = function _AwardIcon(_ref) { var size = _ref.size, color = _ref.color, styledProps = _objectWithoutProperties(_ref, _excluded); var _useIconProps = useIconProps({ size: size, color: color }), height = _useIconProps.height, width = _useIconProps.width, iconColor = _useIconProps.iconColor; return /*#__PURE__*/jsx(Svg, _objectSpread(_objectSpread({}, styledProps), {}, { width: width, height: height, viewBox: "0 0 24 24", fill: "none", children: /*#__PURE__*/jsx(Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M12 0C7.58172 0 4 3.58172 4 8C4 10.5901 5.23084 12.8926 7.13952 14.3547L6.00873 22.8683C5.95817 23.249 6.13004 23.625 6.45099 23.8358C6.77193 24.0466 7.18525 24.0551 7.51452 23.8575L12 21.1662L16.4855 23.8575C16.8148 24.055 17.2281 24.0466 17.549 23.8358C17.8699 23.625 18.0418 23.2491 17.9913 22.8685L16.8617 14.3538C18.7697 12.8917 20 10.5895 20 8C20 3.58172 16.4183 0 12 0ZM15.3305 12.9915C15.2735 13.021 15.2199 13.0558 15.1702 13.095C14.2504 13.6686 13.1639 14 12 14C8.68629 14 6 11.3137 6 8C6 4.68629 8.68629 2 12 2C15.3137 2 18 4.68629 18 8C18 10.0815 16.9401 11.9154 15.3305 12.9915ZM14.9861 15.4241L15.7359 21.0753L12.5145 19.1425C12.1978 18.9525 11.8022 18.9525 11.4855 19.1425L8.26447 21.0751L9.01499 15.4245C9.93735 15.7957 10.9448 16 12 16C13.0556 16 14.0635 15.7955 14.9861 15.4241Z", fill: iconColor }) })); }; var AwardIcon = /*#__PURE__*/assignWithoutSideEffects(_AwardIcon, { componentId: 'AwardIcon' }); export { AwardIcon as default }; //# sourceMappingURL=AwardIcon.js.map