@razorpay/blade
Version:
The Design System that powers Razorpay
50 lines (47 loc) • 4.52 kB
JavaScript
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 { jsxs, 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 _WhatsAppIcon = function _WhatsAppIcon(_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__*/jsxs(Svg, _objectSpread(_objectSpread({}, styledProps), {}, {
width: width,
height: height,
viewBox: "0 0 24 24",
fill: "none",
children: [/*#__PURE__*/jsx(Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M9.97502 6.2749C8.99372 6.2749 8.05261 6.66472 7.35873 7.35861C6.66484 8.05249 6.27502 8.9936 6.27502 9.9749C6.27502 12.0303 7.09154 14.0016 8.54495 15.455C9.99835 16.9084 11.9696 17.7249 14.025 17.7249C15.0063 17.7249 15.9474 17.3351 16.6413 16.6412C17.3352 15.9473 17.725 15.0062 17.725 14.0249C17.725 13.6461 17.511 13.2999 17.1722 13.1305L14.4722 11.7805C14.1512 11.6199 13.7687 11.6438 13.4701 11.843L12.4002 12.5566C12.014 12.3129 11.687 11.9859 11.4433 11.5997L12.1569 10.5298C12.3561 10.2312 12.38 9.84874 12.2195 9.52769L10.8695 6.82769C10.7001 6.4889 10.3538 6.2749 9.97502 6.2749ZM8.77294 8.77282C8.95334 8.59242 9.17011 8.45675 9.40602 8.37296L10.171 9.90291L9.45361 10.9784C9.26772 11.2571 9.23372 11.6103 9.36305 11.9194C9.8768 13.147 10.853 14.1231 12.0806 14.6369C12.3896 14.7662 12.7428 14.7322 13.0215 14.5463L14.097 13.8289L15.627 14.5939C15.5432 14.8298 15.4075 15.0466 15.2271 15.227C14.9083 15.5458 14.4759 15.7249 14.025 15.7249C12.5 15.7249 11.0375 15.1191 9.95916 14.0408C8.88083 12.9624 8.27502 11.4999 8.27502 9.9749C8.27502 9.52403 8.45413 9.09163 8.77294 8.77282Z",
fill: iconColor
}), /*#__PURE__*/jsx(Path, {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M12.6531 2.0232C10.2312 1.86511 7.83454 2.59317 5.90986 4.07165C3.98518 5.55012 2.66387 7.67809 2.19227 10.0588C1.75058 12.2886 2.08248 14.5975 3.12513 16.6071L2.09074 19.6954C1.98791 20.0037 1.97298 20.3346 2.04764 20.651C2.1223 20.9673 2.28358 21.2566 2.51342 21.4865C2.74326 21.7163 3.03256 21.8776 3.34891 21.9522C3.66525 22.0269 3.99616 22.012 4.30451 21.9091L7.39583 20.8781C9.4056 21.9211 11.7148 22.2531 13.9448 21.8114C16.3255 21.3398 18.4535 20.0184 19.932 18.0938C21.4105 16.1691 22.1385 13.7724 21.9804 11.3506C21.8223 8.92873 20.7889 6.64704 19.0727 4.9309C17.3566 3.21476 15.0749 2.1813 12.6531 2.0232ZM7.12822 5.65771C8.66797 4.47493 10.5853 3.89248 12.5228 4.01896C14.4602 4.14543 16.2856 4.9722 17.6585 6.34511C19.0314 7.71802 19.8582 9.54338 19.9847 11.4808C20.1111 13.4183 19.5287 15.3357 18.3459 16.8754C17.1631 18.4151 15.4608 19.4722 13.5562 19.8495C11.6516 20.2268 9.6748 19.8985 7.99435 18.9259C7.74641 18.7824 7.44882 18.7522 7.17706 18.8428L4.14703 19.8534L5.16041 16.8278C5.25154 16.5557 5.22141 16.2576 5.07769 16.0093C4.10511 14.3288 3.77687 12.352 4.15415 10.4475C4.53143 8.54287 5.58848 6.84049 7.12822 5.65771Z",
fill: iconColor
})]
}));
};
var WhatsAppIcon = /*#__PURE__*/assignWithoutSideEffects(_WhatsAppIcon, {
componentId: 'WhatsAppIcon'
});
export { WhatsAppIcon as default };
//# sourceMappingURL=WhatsAppIcon.js.map