UNPKG

onecart-ui

Version:

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

11 lines (10 loc) 1.09 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const FileUpload = ({ 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: "M19.500 15.750V19.500H4.500V15.750H2.000V19.500C2.000 20.875 3.125 22.000 4.500 22.000H19.500C20.875 22.000 22.000 20.875 22.000 19.500V15.750H19.500ZM5.750 8.250L7.512 10.012L10.750 6.787V17.000H13.250V6.787L16.488 10.012L18.250 8.250L12.000 2.000L5.750 8.250Z", fill: color }), React.createElement(Path, { d: "M4.683 20.781V20.781H2.488V20.049H2.000V20.781C2.000 21.049 2.220 21.268 2.488 21.268H5.415C4.951 22.000 5.171 21.780 5.171 21.512V20.049H5.415ZM2.000 19.317L2.344 19.661L2.976 19.032V20.293H4.195V18.300L4.827 18.929L5.171 18.585L3.951 17.366L2.732 18.585Z", fill: color }))); }; FileUpload.displayName = 'FileUpload';