Add a volume slider to the soundButton function: - Add "volume" to the component state, with values ranging from 0 to 1. - Save sound volume in local storage. Local storage key: buttonsVolume, value example: { soundName1: 0.8, soundName2: 0.6 } <img width="273" height="251" alt="Image" src="https://github.com/user-attachments/assets/89084071-bf3e-44ed-a384-b04274176228" />
Add a volume slider to the soundButton function: