"use client" import useSound from 'use-sound'; export default function Soundboard() { const [playBoyYouPlay] = useSound("/boyyouplay.m4a", {soundEnabled: true}); const [playEatItUp] = useSound("/eatitup.m4a", {soundEnabled: true}); const [playGangbusters] = useSound("/gangbusters.m4a", {soundEnabled: true}); const [playHusky] = useSound("/husky.m4a", {soundEnabled: true}); const [playPrettyFlags] = useSound("/prettyflags.m4a", {soundEnabled: true}); const getButton = (title: string, play: () => void) => { return } return (
{getButton("Boy you play!", playBoyYouPlay)} {getButton("Eat It Up!", playEatItUp)} {getButton("Gangbusters", playGangbusters)} {getButton("Husky", playHusky)} {getButton("Pretty Flags", playPrettyFlags)}
); }