import React, { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { Headphones, Heart, MicVocal, Music, Star } from 'lucide-react'; import type { LastfmArtistStats, LastfmTrackInfo } from '../../api/lastfm'; import LastfmIcon from '../LastfmIcon'; import { formatTime } from '../../utils/nowPlayingHelpers'; interface HeroProps { track: { title: string; artist: string; album: string; year?: number; duration: number; suffix?: string; bitRate?: number; samplingRate?: number; bitDepth?: number; artistId?: string; albumId?: string; id: string; userRating?: number; }; genre?: string; playCount?: number; userRatingOverride?: number; lfmTrack: LastfmTrackInfo | null; lfmArtist: LastfmArtistStats | null; starred: boolean; lfmLoved: boolean; lfmLoveEnabled: boolean; activeLyricsTab: boolean; coverUrl: string; onNavigate: (path: string) => void; onToggleStar: () => void; onToggleLfmLove: () => void; onOpenLyrics: () => void; } function renderStars(rating?: number) { if (!rating) return null; return (