UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 949 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const EventAvailable = ({ 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: "M18.000 4.000H17.000V2.000H15.000V4.000H7.000V2.000H5.000V4.000H4.000C4.900 2.000 4.000 2.900 4.000 4.000V20.000C2.000 21.100 2.900 22.000 4.000 22.000H18.000C21.100 20.000 22.000 19.100 22.000 18.000V6.000C20.000 4.900 19.100 4.000 18.000 4.000ZM18.000 20.000H4.000V10.000H18.000V20.000ZM4.000 8.000V4.000H20.000V6.000H6.000ZM9.560 18.460L15.490 12.530L14.430 11.470L9.560 16.340L7.450 14.230L6.390 15.290L9.560 18.460Z", fill: color }))); }; EventAvailable.displayName = 'EventAvailable';