onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
15 lines (14 loc) • 1.94 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const SensorOccupied = ({ 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: "M22.000 7.118L19.870 2.000C11.820 5.375 5.375 11.820 2.000 19.870L7.118 22.000C9.939 15.306 15.306 9.939 22.000 7.118Z", fill: color }),
React.createElement(Path, { d: "M16.882 22.000L22.000 19.870C18.625 11.820 12.180 5.347 4.130 2.000L2.000 7.118C8.694 9.939 14.061 15.306 16.882 22.000Z", fill: color }),
React.createElement(Path, { d: "M12.000 22.000C17.533 22.000 22.000 17.533 22.000 12.000C22.000 6.467 17.533 2.000 12.000 2.000C6.467 2.000 2.000 6.467 2.000 12.000C2.000 17.533 6.467 22.000 12.000 22.000ZM12.000 8.667C13.833 8.667 15.333 10.167 15.333 12.000C15.333 13.833 13.833 15.333 12.000 15.333C10.167 15.333 8.667 13.833 8.667 12.000C8.667 10.167 10.167 8.667 12.000 8.667Z", fill: color }),
React.createElement(Path, { d: "M12.909 9.018C9.564 9.018 6.436 9.927 3.764 11.509C2.655 12.145 2.000 13.364 2.000 14.636V22.000H19.927V18.527C19.927 17.255 19.273 16.055 18.164 15.400C15.491 13.818 12.364 12.909 9.018 12.909ZM2.000 18.364C4.145 17.182 6.564 16.545 9.018 16.545C11.473 16.545 13.891 17.182 16.018 18.364H2.000Z", fill: color }),
React.createElement(Path, { d: "M7.118 2.000L2.000 4.130C5.375 12.180 11.820 18.653 19.870 22.000L22.000 16.882C15.306 14.061 9.939 8.694 7.118 2.000Z", fill: color }),
React.createElement(Path, { d: "M2.000 16.882L4.130 22.000C12.180 18.625 18.653 12.180 22.000 4.130L16.882 2.000C14.061 8.694 8.694 14.061 2.000 16.882Z", fill: color })));
};
SensorOccupied.displayName = 'SensorOccupied';