UNPKG

onecart-ui

Version:

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

12 lines (11 loc) 2.26 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Alarm = ({ 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: "M12.589 7.887H11.103V13.831L15.809 16.654L16.552 15.436L12.589 13.088V8.132ZM17.136 2.000L21.700 5.809L20.432 7.329L15.865 3.523L17.136 2.000ZM6.563 2.000L7.833 3.522L3.268 7.329L2.000 5.808L6.563 2.000ZM11.849 4.169C6.926 4.169 2.934 8.161 2.934 13.085C2.934 18.008 6.926 22.000 11.849 22.000C16.773 22.000 20.765 18.008 20.765 13.085C20.765 8.161 16.773 4.169 11.849 4.169ZM11.849 20.019C8.026 20.019 4.915 16.908 4.915 13.085C4.915 9.261 8.026 6.151 11.849 6.151C15.673 6.151 18.784 9.261 18.784 13.085C18.784 16.908 15.673 20.019 11.849 20.019Z", fill: color }), React.createElement(Path, { d: "M2.371 19.809H2.000V21.294L3.176 22.000L3.362 21.696L2.371 21.109V17.595ZM5.783 16.063L6.923 17.015L6.606 17.395L5.465 16.444L5.783 16.063ZM3.140 16.063L3.458 16.443L2.317 17.395L2.000 17.015L3.140 16.063ZM4.461 16.605C3.231 16.605 2.233 17.603 2.233 18.833C2.233 20.063 3.231 21.061 4.461 21.061C5.692 21.061 6.689 20.063 6.689 18.833C6.689 17.603 5.692 16.605 4.461 16.605ZM4.461 20.566C3.506 20.566 2.729 19.789 2.729 18.833C2.729 17.878 3.506 17.100 4.461 17.100C5.417 17.100 6.194 17.878 6.194 18.833C6.194 19.789 5.417 20.566 4.461 20.566Z", fill: color }), React.createElement(Path, { d: "M2.249 20.530H2.000V21.527L2.789 22.000L2.914 21.796L2.249 21.402V19.044ZM4.538 18.016L5.304 18.654L5.091 18.910L4.325 18.271L4.538 18.016ZM2.765 18.016L2.978 18.271L2.213 18.910L2.000 18.654L2.765 18.016ZM3.652 18.380C2.826 18.380 2.157 19.049 2.157 19.875C2.157 20.700 2.826 21.370 3.652 21.370C4.477 21.370 5.147 20.700 5.147 19.875C5.147 19.049 4.477 18.380 3.652 18.380ZM3.652 21.038C3.011 21.038 2.489 20.516 2.489 19.875C2.489 19.234 3.011 18.712 3.652 18.712C4.293 18.712 4.815 19.234 4.815 19.875C4.815 20.516 4.293 21.038 3.652 21.038Z", fill: color }))); }; Alarm.displayName = 'Alarm';