import { memo } from 'react'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select'; import { Badge } from '@/components/ui/badge'; import { PlatformId, platforms, activePlatforms } from '@/lib/platforms'; interface PlatformSelectorProps { value: PlatformId; onChange: (platform: PlatformId) => void; disabled?: boolean; } export const PlatformSelector = memo(function PlatformSelector({ value, onChange, disabled = false, }: PlatformSelectorProps) { const currentPlatform = platforms[value]; return ( ); });