UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 969 B
import React from 'react'; export const Map = ({ size = 'md', color = 'currentColor', className, 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", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M21.444 2.000L21.267 2.033L15.333 4.333L8.667 2.000L2.400 4.111C2.167 4.189 2.000 4.389 2.000 4.644V21.444C2.000 21.756 2.244 22.000 2.556 22.000L2.733 21.967L8.667 19.667L15.333 22.000L21.600 19.889C21.833 19.811 22.000 19.611 22.000 19.356V2.556C22.000 2.244 21.756 2.000 21.444 2.000ZM9.778 4.744L14.222 6.300V19.256L9.778 17.700V4.744ZM4.222 5.844L7.556 4.722V17.722L4.222 19.011V5.844ZM19.778 18.156L16.444 19.278V6.289L19.778 5.000V18.156Z", fill: color }))); }; Map.displayName = 'Map';