onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1.25 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const MapsUgc = ({ 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: "M14.500 2.000H9.500V9.500H2.000V14.500H9.500V22.000H14.500V14.500H22.000V9.500H14.500V2.000Z", fill: color }),
React.createElement(Path, { d: "M12.476 3.905C16.676 3.905 20.095 7.324 20.095 11.524C20.095 15.724 16.676 19.143 12.476 19.143C11.352 19.143 10.248 18.895 9.210 18.400C8.952 18.276 8.676 18.219 8.390 18.219C8.210 18.219 8.029 18.248 7.857 18.295L4.810 19.190L5.705 16.143C5.838 15.695 5.800 15.210 5.600 14.790C5.105 13.752 4.857 12.648 4.857 11.524C4.857 7.324 8.276 3.905 12.476 3.905ZM12.476 2.000C7.219 2.000 2.952 6.267 2.952 11.524C2.952 12.990 3.295 14.362 3.876 15.610L2.000 22.000L8.390 20.124C9.638 20.705 11.010 21.048 12.476 21.048C17.733 21.048 22.000 16.781 22.000 11.524C22.000 6.267 17.733 2.000 12.476 2.000Z", fill: color })));
};
MapsUgc.displayName = 'MapsUgc';