UNPKG

onecart-ui

Version:

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

11 lines (10 loc) 1.1 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const FileDownload = ({ 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.500ZM18.250 10.750L16.488 8.988L13.250 12.213V2.000H10.750V12.213L7.512 8.988L5.750 10.750L12.000 17.000L18.250 10.750Z", fill: color }), React.createElement(Path, { d: "M3.220 20.781V19.317H2.488V18.585H2.000V19.317C2.000 19.585 2.220 19.805 2.488 19.805H5.415C3.488 22.000 3.707 21.780 3.707 21.512V18.585H5.415ZM2.976 19.805L2.632 19.461L2.000 20.090V15.902H3.707V17.895L3.076 17.266L2.732 17.610L3.951 18.829L5.171 17.610Z", fill: color }))); }; FileDownload.displayName = 'FileDownload';