onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.31 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Savings = ({ 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: "M15.000 8.000C15.000 7.450 15.450 7.000 16.000 7.000C16.550 7.000 17.000 7.450 17.000 8.000C17.000 8.550 16.550 9.000 16.000 9.000C15.450 9.000 15.000 8.550 15.000 8.000ZM8.000 7.000H13.000V5.000H8.000V7.000ZM22.000 5.500V14.470L17.180 15.410L15.500 21.000H10.000V19.000H8.000V21.000H2.500C4.500 19.000 2.000 10.540 2.000 7.500C2.000 4.460 4.460 2.000 7.500 2.000H12.500C11.410 2.790 12.860 2.000 14.500 2.000C15.330 2.000 16.000 2.670 16.000 3.500C16.000 3.710 15.960 3.900 15.880 4.080C15.740 4.420 15.620 4.810 15.560 5.230L17.830 7.500H20.000ZM20.000 7.500H19.000L13.500 6.000C13.500 5.350 13.590 4.710 13.760 4.090C12.790 4.340 12.000 5.060 11.670 6.000H5.500C5.570 4.000 4.000 5.570 4.000 7.500C4.000 9.380 5.220 14.150 6.010 17.000H8.000V15.000H14.000V17.000H16.010L15.560 13.850L18.000 13.030V7.500Z", fill: color })));
};
Savings.displayName = 'Savings';