onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1.08 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const LocationOn = ({ 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: "M9.000 2.000C5.130 2.000 2.000 5.130 2.000 9.000C2.000 14.250 9.000 22.000 9.000 22.000C9.000 22.000 16.000 14.250 16.000 9.000C16.000 5.130 12.870 2.000 9.000 2.000ZM4.000 9.000C4.000 6.240 6.240 4.000 9.000 4.000C11.760 4.000 14.000 6.240 14.000 9.000C14.000 11.880 11.120 16.190 9.000 18.880C6.920 16.210 4.000 11.850 4.000 9.000Z", fill: color })));
};
LocationOn.displayName = 'LocationOn';