'use client'; import React from 'react'; import useSound from 'use-sound'; import { useSoundEnabled } from '../SoundEnabledProvider'; import styles from './DrumMachine.module.css'; const SOUND_SRC = '/909-drums.mp3'; function DrumMachine() { const { soundEnabled } = useSoundEnabled(); const [play] = useSound(SOUND_SRC, { sprite: { kick: [0, 350], hihat: [374, 160], snare: [666, 290], cowbell: [968, 200], }, soundEnabled: soundEnabled, }); return (