UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 855 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const SensorDoor = ({ 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.000V20.000H6.000V4.000H18.000ZM18.000 2.000H6.000C4.900 2.000 4.000 2.900 4.000 4.000V22.000H20.000V4.000C20.000 2.900 19.100 2.000 18.000 2.000ZM15.500 10.500C14.670 10.500 14.000 11.170 14.000 12.000C14.000 12.830 14.670 13.500 15.500 13.500C16.330 13.500 17.000 12.830 17.000 12.000C17.000 11.170 16.330 10.500 15.500 10.500Z", fill: color }))); }; SensorDoor.displayName = 'SensorDoor';