UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 691 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Upload = ({ 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: "M9.500 15.750H17.000V8.250H22.000L10.750 2.000L2.000 10.750H7.000V18.250ZM10.750 5.537L13.463 8.250H12.000V15.750H9.500V8.250H8.037L13.250 3.037ZM4.500 18.250H22.000V20.750H4.500V18.250Z", fill: color }))); }; Upload.displayName = 'Upload';