onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
9 lines (8 loc) • 1.37 kB
JavaScript
import React from 'react';
export const PhoneCallback = ({ size = 'md', color = 'currentColor', className, style, }) => {
const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 };
const iconSize = typeof size === 'number' ? size : sizeMap[size];
return (React.createElement("svg", { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
React.createElement("path", { d: "M20.448 16.042C19.103 16.042 17.790 15.825 16.574 15.424C16.466 15.380 16.346 15.369 16.238 15.369C15.956 15.369 15.684 15.478 15.467 15.684L13.080 18.071C10.009 16.498 7.491 13.991 5.929 10.920L8.316 8.533C8.620 8.229 8.707 7.806 8.587 7.426C8.186 6.210 7.969 4.908 7.969 3.552C7.969 2.955 7.480 2.467 6.884 2.467H3.085C2.955 2.000 2.467 2.488 2.467 3.085C2.467 13.275 10.725 21.533 20.915 21.533C21.512 21.533 22.000 21.045 22.000 20.448V17.127C21.533 16.530 21.045 16.042 20.448 16.042ZM4.203 4.637H5.831C6.373 5.136 6.536 6.080 6.797 6.981L5.494 8.283C5.050 6.981 4.767 5.603 4.670 4.170ZM19.830 19.330C18.397 19.233 17.019 18.950 15.706 18.516L16.997 17.225C17.920 17.485 18.864 17.648 19.819 17.713V19.797H19.363ZM18.744 8.511H15.934L20.915 3.530L19.385 2.000L13.937 7.448V4.170H12.233V10.681H18.744V8.511Z", fill: color })));
};
PhoneCallback.displayName = 'PhoneCallback';