UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 957 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const AddLocation = ({ 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: "M11.000 6.000V7.000H16.000V9.000H13.000V12.000H11.000V9.000H8.000V7.000H11.000V4.000H13.000ZM16.000 10.200C16.000 6.570 13.350 4.000 10.000 4.000C6.650 4.000 4.000 6.570 4.000 10.200C4.000 12.540 5.950 15.640 10.000 19.340C14.050 15.640 16.000 12.540 16.000 10.200ZM10.000 2.000C14.200 2.000 18.000 5.220 18.000 10.200C18.000 13.520 15.330 17.450 10.000 22.000C4.670 17.450 2.000 13.520 2.000 10.200C2.000 5.220 5.800 2.000 10.000 2.000Z", fill: color }))); }; AddLocation.displayName = 'AddLocation';