onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 2.04 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Balance = ({ 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: "M12.000 7.830C12.850 7.530 13.530 6.850 13.830 6.000H17.000L15.000 12.000C15.000 13.660 16.570 15.000 18.500 15.000C20.430 15.000 22.000 13.660 22.000 12.000L19.000 5.000H21.000V3.000H14.830C13.420 2.830 12.310 2.000 11.000 2.000C9.690 2.000 8.580 2.830 8.170 4.000H2.000V6.000H4.000L2.000 12.000C2.000 13.660 3.570 15.000 5.500 15.000C7.430 15.000 9.000 13.660 9.000 12.000L6.000 5.000H9.170C8.470 6.850 9.150 7.530 10.000 7.830V18.000H2.000V20.000H22.000V18.000H13.000V6.830ZM20.370 12.000H16.630L17.500 8.640L19.370 13.000ZM6.370 13.000H2.630L5.500 7.640L7.370 12.000ZM12.000 5.000C11.450 5.000 11.000 4.550 11.000 4.000C11.000 3.450 11.450 3.000 12.000 3.000C12.550 3.000 13.000 3.450 13.000 4.000C13.000 4.550 12.550 5.000 12.000 5.000Z", fill: color }),
React.createElement(Path, { d: "M4.381 19.102C4.583 19.031 4.745 18.869 4.817 18.667H5.571L5.095 20.095C5.095 20.490 5.469 20.810 5.929 20.810C6.388 20.810 6.762 20.490 6.762 20.095L6.048 18.429H6.524V17.952H5.055C4.719 17.912 4.455 17.714 4.143 17.714C3.831 17.714 3.567 17.912 3.469 18.190H2.000V18.667H2.476L2.000 20.095C2.000 20.490 2.374 20.810 2.833 20.810C3.293 20.810 3.667 20.490 3.667 20.095L2.952 18.429H3.707C3.540 18.869 3.702 19.031 3.905 19.102V21.524H2.000V22.000H6.762V21.524H4.619V18.864ZM6.374 20.095H5.483L5.690 19.295L6.136 20.333ZM3.040 20.333H2.150L2.833 19.057L3.279 20.095ZM4.381 18.429C4.250 18.429 4.143 18.321 4.143 18.190C4.143 18.060 4.250 17.952 4.381 17.952C4.512 17.952 4.619 18.060 4.619 18.190C4.619 18.321 4.512 18.429 4.381 18.429Z", fill: color })));
};
Balance.displayName = 'Balance';