UNPKG

onecart-ui

Version:

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

11 lines (10 loc) 1.18 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const LocalOffer = ({ 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 22.000C17.523 22.000 22.000 17.523 22.000 12.000C22.000 6.477 17.523 2.000 12.000 2.000C6.477 2.000 2.000 6.477 2.000 12.000C2.000 17.523 6.477 22.000 12.000 22.000Z", fill: color }), React.createElement(Path, { d: "M21.410 11.580L12.410 2.580C12.050 2.220 11.550 2.000 11.000 2.000H4.000C2.900 2.000 2.000 2.900 2.000 4.000V11.000C2.000 11.550 2.220 12.050 2.590 12.420L11.590 21.420C11.950 21.780 12.450 22.000 13.000 22.000C13.550 22.000 14.050 21.780 14.410 21.410L21.410 14.410C21.780 14.050 22.000 13.550 22.000 13.000C22.000 12.450 21.770 11.940 21.410 11.580ZM13.000 20.010L4.000 11.000V4.000H11.000V3.990L20.000 12.990L13.000 20.010Z", fill: color }))); }; LocalOffer.displayName = 'LocalOffer';