import { Fragment, FC } from "react"; import { View, ViewStyle } from "react-native"; import { IconBackground } from "./IconBackground"; interface SentryBugIconProps { size?: number; color?: string; glowColor?: string; colorPreset?: "red" | "purple" | "orange" | "pink" | "cyan" | "green"; variant?: "circuit" | "matrix" | "glitch" | "nodes" | "grid"; noBackground?: boolean; } const ColorPresets = { red: { color: "#FF3366", glow: "#FF3366" }, purple: { color: "#9945FF", glow: "#9945FF" }, orange: { color: "#FF8800", glow: "#FF8800" }, pink: { color: "#FF45FF", glow: "#FF45FF" }, cyan: { color: "#00D4FF", glow: "#00D4FF" }, green: { color: "#00FF88", glow: "#00FF88" }, }; // Leg positions simplified const LEGS = [ { y: 0.3, side: "left", rotation: -20 }, { y: 0.5, side: "left", rotation: -20 }, { y: 0.7, side: "left", rotation: -20 }, { y: 0.3, side: "right", rotation: 20 }, { y: 0.5, side: "right", rotation: 20 }, { y: 0.7, side: "right", rotation: 20 }, ]; export const SentryBugIcon: FC = ({ size = 24, color, glowColor, colorPreset = "red", variant = "circuit", noBackground = true, }) => { const scale = noBackground ? size / 24 : size / 60; const preset = ColorPresets[colorPreset as keyof typeof ColorPresets] || ColorPresets.red; const activeColor = color || preset.color; const activeGlow = glowColor || preset.glow; const iconContent = ( <> {/* Bug body - main oval */} {/* Bug head */} {/* Single bug glow */} {/* Bug legs - using loop */} {LEGS.map((leg, i) => ( ))} {/* Simplified antennae */} {[-15, 15].map((rotation, i) => ( ))} {/* Single center dot */} ); if (noBackground) { return ( {iconContent} ); } return ( {iconContent} ); };