onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Eco = ({ size = 'md', color = 'currentColor', 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", style: style },
React.createElement(Path, { d: "M5.273 6.856C2.000 10.129 2.000 15.453 5.273 18.727C6.916 20.369 9.062 21.185 11.209 21.185C13.355 21.185 15.501 20.369 17.144 18.727C21.317 14.554 22.000 2.000 22.000 2.000C22.000 2.000 9.446 2.683 5.273 6.856ZM15.453 17.036C14.314 18.163 12.815 18.787 11.209 18.787C10.141 18.787 9.134 18.487 8.235 17.971C9.338 14.518 11.376 11.484 14.086 9.194C10.933 10.825 8.283 13.343 6.448 16.388C4.674 14.038 4.830 10.693 6.976 8.547C9.062 6.460 14.854 5.177 19.362 4.638C18.823 9.146 17.540 14.938 15.453 17.036Z", fill: color })));
};
Eco.displayName = 'Eco';