UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 830 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const FileCopy = ({ 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: "M15.636 2.000H4.727C3.727 2.000 2.909 2.818 2.909 3.818V16.545H4.727V3.818H15.636V2.000ZM14.727 5.636H8.364C7.364 5.636 6.555 6.455 6.555 7.455L6.545 20.182C6.545 21.182 7.355 22.000 8.355 22.000H18.364C19.364 22.000 20.182 21.182 20.182 20.182V11.091L14.727 5.636ZM8.364 20.182V7.455H13.818V12.000H18.364V20.182H8.364Z", fill: color }))); }; FileCopy.displayName = 'FileCopy';