onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
12 lines (11 loc) • 1.67 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Inventory = ({ 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: "M6.000 4.000H8.000V7.000H18.000V4.000H20.000V9.000H22.000V4.000C22.000 2.900 21.100 2.000 20.000 2.000H15.820C13.400 2.840 12.300 2.000 11.000 2.000C9.700 2.000 8.600 2.840 8.180 4.000H4.000C4.900 2.000 4.000 2.900 4.000 4.000V20.000C2.000 21.100 2.900 22.000 4.000 22.000H10.000V20.000H4.000V6.000ZM11.000 4.000C11.550 4.000 12.000 4.450 12.000 5.000C12.000 5.550 11.550 6.000 11.000 6.000C10.450 6.000 10.000 5.550 10.000 5.000C10.000 4.450 10.450 4.000 11.000 4.000Z", fill: color }),
React.createElement(Path, { d: "M19.391 2.000L9.843 11.565L4.609 6.348L2.000 8.957L9.843 16.783L22.000 4.609L19.391 2.000Z", fill: color }),
React.createElement(Path, { d: "M2.476 18.190H2.952V18.905H5.333V18.190H5.810V19.381H6.286V18.190C6.286 17.929 6.071 17.714 5.810 17.714H4.814C4.714 17.438 4.452 17.238 4.143 17.238C3.833 17.238 3.571 17.438 3.471 17.714H2.476C2.214 17.714 2.000 17.929 2.000 18.190V21.524C2.000 21.786 2.214 22.000 2.476 22.000H3.905V21.524H2.476V18.190ZM4.143 17.714C4.274 17.714 4.381 17.821 4.381 17.952C4.381 18.083 4.274 18.190 4.143 18.190C4.012 18.190 3.905 18.083 3.905 17.952C3.905 17.821 4.012 17.714 4.143 17.714Z", fill: color })));
};
Inventory.displayName = 'Inventory';