UNPKG

onecart-ui

Version:

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

11 lines (10 loc) 978 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Inventory2 = ({ 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: "M20.000 2.000H4.000C3.000 2.000 2.000 2.900 2.000 4.000V7.010C2.000 7.730 2.430 8.350 3.000 8.700V20.000C3.000 21.100 4.100 22.000 5.000 22.000H19.000C19.900 22.000 21.000 21.100 21.000 20.000V8.700C21.570 8.350 22.000 7.730 22.000 7.010V4.000C22.000 2.900 21.000 2.000 20.000 2.000ZM19.000 20.000H5.000V9.000H19.000V20.000ZM20.000 7.000H4.000V4.000H20.000V7.000Z", fill: color }), React.createElement(Path, { d: "M22.000 2.000H2.000V8.667H22.000V2.000Z", fill: color }))); }; Inventory2.displayName = 'Inventory2';