import { useState } from "react"; import { AudioController } from "../.client/audio/AudioController"; import GolfWatchApp, { type Props } from "./GolfWatchApp.client"; export default function GolfWatchAppWithAudioPlayRequest({ game, sockToken, }: Omit) { const [audioController, setAudioController] = useState(null); const audioPlayPermitted = audioController !== null; if (audioPlayPermitted) { return ( ); } else { return (
); } }