UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.14 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const ModeOfTravel = ({ 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: "M13.310 18.900C12.350 19.900 11.250 20.930 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.000C14.190 2.000 17.990 5.210 18.000 10.170L20.090 8.080L21.500 9.500L17.000 14.000L12.500 9.500L13.910 8.090L16.000 10.170C15.990 6.550 13.340 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.340C10.640 18.750 11.230 18.180 11.770 17.630C11.600 17.290 11.500 16.910 11.500 16.510C11.500 15.130 12.620 14.010 14.000 14.010C15.380 14.010 16.500 15.130 16.500 16.510C16.500 17.890 15.380 19.000 14.000 19.000C13.760 19.000 13.530 18.970 13.310 18.900Z", fill: color }))); }; ModeOfTravel.displayName = 'ModeOfTravel';