import { Card } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; import { Checkbox } from "@/components/ui/checkbox"; import { Bot, Globe, MapPin, Plus, Minus } from "lucide-react"; interface Robot { id: string; name: string; icon: string; galacticDemand: number; localPrice: number; galacticPrice: number; unlocked: boolean; researched: boolean; productionBonus: number; salesBonus: number; } interface RobotManagerProps { robots: Robot[]; onGalacticDemandChange: (robotId: string, demand: number) => void; onProductionBonusChange: (robotId: string, bonus: number) => void; onSalesBonusChange: (robotId: string, bonus: number) => void; onResearchedChange: (robotId: string, researched: boolean) => void; } export const RobotManager = ({ robots, onGalacticDemandChange, onProductionBonusChange, onSalesBonusChange, onResearchedChange }: RobotManagerProps) => { const unlockedRobots = robots.filter(robot => robot.unlocked); return (

Robot Production

{unlockedRobots.map((robot) => (
onResearchedChange(robot.id, checked as boolean)} />
{robot.icon}

{robot.name}

{/* Local Sales */}
Local Price: ${(robot.localPrice * (1 + robot.salesBonus * 0.05)).toLocaleString()}
{/* Galactic Sales */}
onGalacticDemandChange(robot.id, parseInt(e.target.value) || 0)} className="bg-input border-steel focus:border-electric" placeholder="Enter quantity..." />
Galactic Price: ${(robot.galacticPrice * (1 + robot.salesBonus * 0.05)).toLocaleString()}
{/* Bonuses */}
+{robot.productionBonus * 10}%
+{robot.salesBonus * 5}%
))}
{unlockedRobots.length === 0 && (

No robots unlocked yet

)}
); };