UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

12 lines (11 loc) 1.33 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const PriceCheck = ({ 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.333 17.000V12.000C13.667 11.083 12.917 10.333 12.000 10.333H5.333V7.000H13.667V3.667H9.500V2.000H6.167V3.667H3.667C4.417 2.000 3.667 2.750 3.667 3.667V12.000C2.000 12.917 2.750 13.667 3.667 13.667H10.333V17.000H2.000V20.333H6.167V22.000H9.500V20.333H12.000C14.583 18.667 15.333 17.917 15.333 17.000Z", fill: color }), React.createElement(Path, { d: "M19.507 2.000L9.498 11.991L4.493 6.987L2.000 9.498L9.498 16.996L22.000 4.493L19.507 2.000Z", fill: color }), React.createElement(Path, { d: "M3.818 21.481V20.442C3.818 20.299 3.701 20.182 3.558 20.182H2.519V19.662H3.818V19.143H3.169V18.883H2.649V19.143H2.260C2.117 19.143 2.000 19.260 2.000 19.403V20.442C2.000 20.584 2.117 20.701 2.260 20.701H3.299V21.221H2.000V21.740H2.649V22.000H3.169V21.740H3.558C3.701 21.740 3.818 21.623 3.818 21.481Z", fill: color }))); }; PriceCheck.displayName = 'PriceCheck';