onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1.56 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Liquor = ({ 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: "M2.000 13.579C2.000 14.947 2.884 16.105 4.105 16.547V19.895H2.000V22.000H8.316V19.895H6.211V16.547C7.432 16.105 8.316 14.947 8.316 13.579V5.158H2.000V13.579ZM4.105 7.263H6.211V10.421H4.105V7.263ZM4.105 12.526H6.211V13.579C6.211 14.158 5.737 14.632 5.158 14.632C4.579 14.632 4.105 14.158 4.105 13.579V12.526Z", fill: color }),
React.createElement(Path, { d: "M20.640 8.540L19.680 8.220C19.270 8.080 19.000 7.700 19.000 7.270V3.000C19.000 2.450 18.550 2.000 18.000 2.000H15.000C14.450 2.000 14.000 2.450 14.000 3.000V7.280C14.000 7.710 13.730 8.090 13.320 8.230L12.360 8.550C11.550 8.830 11.000 9.590 11.000 10.450V20.000C11.000 21.100 11.900 22.000 13.000 22.000H20.000C21.100 22.000 22.000 21.100 22.000 20.000V10.440C22.000 9.580 21.450 8.820 20.640 8.540ZM16.000 4.000H17.000V5.000H16.000V4.000ZM20.000 20.000H13.000V18.000H20.000V20.000ZM20.000 16.000H13.000V14.000H20.000V16.000ZM20.000 12.000H13.000V10.440L13.950 10.120C15.180 9.720 16.000 8.570 16.000 7.280V7.000H17.000V7.280C17.000 8.570 17.820 9.720 19.050 10.130L20.000 10.440V12.000Z", fill: color })));
};
Liquor.displayName = 'Liquor';