Let me first save the MP3 file and then read the radio section to understand how to wire it up.
I have full context. The plan is:
<audio> element that plays /audio/ink-spots.mp3 in a loop, controlled by the existing MUSIC ON/OFF toggle. Show the track name when playing.The audio needs to live in a ref so it persists across renders. I'll manage it entirely in the RadioSection since that's where the toggle lives, and use a callback to let the parent know about the audio element for pause/resume on mode switch.
The Restoration Radio now plays "I Don't Want to Set the World on Fire" by The Ink Spots on loop at 40% volume, fully controlled by the existing MUSIC ON/OFF toggle. When playing, a "NOW PLAYING" line displays the track name in gold below the header; when off, it shows "NO SIGNAL". The audio element is created once via a ref, loops infinitely, and is properly cleaned up on unmount. Since the RadioSection only renders inside PipBoyShell, the music automatically stops when switching to PS1 mode (the component unmounts) and resumes state when returning.
You can send messages while the preview loads