UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.13 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Lightbulb = ({ 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: "M9.000 21.000C9.000 21.550 9.450 22.000 10.000 22.000H14.000C14.550 22.000 15.000 21.550 15.000 21.000V20.000H9.000V21.000ZM12.000 2.000C8.140 2.000 5.000 5.140 5.000 9.000C5.000 11.380 6.190 13.470 8.000 14.740V17.000C8.000 17.550 8.450 18.000 9.000 18.000H15.000C15.550 18.000 16.000 17.550 16.000 17.000V14.740C17.810 13.470 19.000 11.380 19.000 9.000C19.000 5.140 15.860 2.000 12.000 2.000ZM14.850 13.100L14.000 13.700V16.000H10.000V13.700L9.150 13.100C7.800 12.160 7.000 10.630 7.000 9.000C7.000 6.240 9.240 4.000 12.000 4.000C14.760 4.000 17.000 6.240 17.000 9.000C17.000 10.630 16.200 12.160 14.850 13.100Z", fill: color }))); }; Lightbulb.displayName = 'Lightbulb';