'use client'; import { useState, useEffect } from 'react'; interface Track { title: string; artist: string; album?: string; } export default function NowPlaying() { const [currentTrack, setCurrentTrack] = useState({ title: 'AeThex Live Stream', artist: 'AeThex LABS', album: 'Live Broadcast', }); useEffect(() => { // Simulate track updates // In a real app, this would fetch from an API const tracks: Track[] = [ { title: 'AeThex Live Stream', artist: 'AeThex LABS', album: 'Live Broadcast' }, { title: 'Cybernetic Dreams', artist: 'AeThex LABS', album: 'Digital Futures' }, { title: 'Neural Network', artist: 'AeThex LABS', album: 'AI Symphony' }, ]; let index = 0; const interval = setInterval(() => { index = (index + 1) % tracks.length; setCurrentTrack(tracks[index]); }, 30000); // Change every 30 seconds return () => clearInterval(interval); }, []); return (

Now Playing

{currentTrack.title}

{currentTrack.artist}

{currentTrack.album && (

{currentTrack.album}

)}
); }