UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.29 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Rocket = ({ 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.000 11.000C14.000 9.900 13.100 9.000 12.000 9.000C10.900 9.000 10.000 9.900 10.000 11.000C10.000 12.100 10.900 13.000 12.000 13.000C13.100 13.000 14.000 12.100 14.000 11.000ZM7.980 18.250C7.690 17.350 7.410 16.310 7.220 15.250L6.000 16.070V19.050L7.980 18.250ZM12.000 2.000C12.000 2.000 17.000 4.000 17.000 13.000L19.110 14.410C19.670 14.780 20.000 15.410 20.000 16.070V22.000L15.000 20.000H9.000L4.000 22.000V16.070C4.000 15.400 4.330 14.780 4.890 14.410L7.000 13.000C7.000 4.000 12.000 2.000 12.000 2.000ZM12.000 4.360C12.000 4.360 9.000 6.380 9.000 13.000C9.000 15.250 10.000 18.000 10.000 18.000H14.000C14.000 18.000 15.000 15.250 15.000 13.000C15.000 6.380 12.000 4.360 12.000 4.360ZM18.000 19.050V16.070L16.780 15.260C16.590 16.310 16.310 17.360 16.020 18.260L18.000 19.050Z", fill: color }))); }; Rocket.displayName = 'Rocket';