onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.29 kB
JavaScript
import React from 'react';
export const UploadFile = ({ 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: "M14.000 2.000H6.000C4.900 2.000 4.010 2.900 4.010 4.000L4.000 20.000C4.000 21.100 4.890 22.000 5.990 22.000H18.000C19.100 22.000 20.000 21.100 20.000 20.000V8.000L14.000 2.000ZM18.000 20.000H6.000V4.000H13.000V9.000H18.000V20.000ZM8.000 15.010L9.410 16.420L11.000 14.840V19.000H13.000V14.840L14.590 16.430L16.000 15.010L12.010 11.000L8.000 15.010Z", fill: color }),
React.createElement("path", { d: "M3.905 17.238H2.000C2.214 16.762 2.002 16.976 2.002 17.238L2.000 21.048C2.000 21.309 2.212 21.524 2.474 21.524H5.333C5.119 22.000 5.333 21.786 5.333 21.524V18.190L4.381 16.762ZM5.333 21.048H2.476V17.238H4.143V18.429H5.333V21.048ZM2.952 19.859L3.288 20.195L3.667 19.819V21.286H3.667V20.295L4.045 20.674L4.381 20.336L3.431 19.381L2.476 20.336Z", fill: color })));
};
UploadFile.displayName = 'UploadFile';