onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 970 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Archive = ({ 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: "M21.489 4.478L19.944 2.611C19.644 2.233 19.189 2.000 18.667 2.000H5.333C4.811 2.000 4.356 2.233 4.044 2.611L2.511 4.478C2.189 4.856 2.000 5.356 2.000 5.889V19.778C2.000 21.000 3.000 22.000 4.222 22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V5.889C22.000 5.356 21.811 4.856 21.489 4.478ZM5.600 4.222H18.400L19.300 5.300H4.711L5.600 4.222ZM4.222 19.778V7.556H19.778V19.778H4.222ZM13.611 9.778H10.389V13.111H7.556L12.000 17.556L16.444 13.111H13.611V9.778Z", fill: color })));
};
Archive.displayName = 'Archive';