aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-04 21:37:22 +0900
committernsfisis <nsfisis@gmail.com>2025-03-04 21:37:22 +0900
commit5062cb9460915624e3f7b808c8f814ba9c31db75 (patch)
treec6fc829aaf17092ea6c5ad2b5b0f8b73f1088a23 /frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx
parenta966efb99f9dee4850fcb1240e9d4472631a99b2 (diff)
downloadphperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.tar.gz
phperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.tar.zst
phperkaigi-2025-albatross-5062cb9460915624e3f7b808c8f814ba9c31db75.zip
rm audio feature
Diffstat (limited to 'frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx')
-rw-r--r--frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx34
1 files changed, 0 insertions, 34 deletions
diff --git a/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx b/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx
deleted file mode 100644
index ce5a59c..0000000
--- a/frontend/app/components/GolfWatchAppWithAudioPlayRequest.client.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { useAtom } from "jotai";
-import { AudioController } from "../.client/audio/AudioController";
-import { audioControllerAtom } from "../states/watch";
-import GolfWatchApp, { type Props } from "./GolfWatchApp.client";
-import SubmitButton from "./SubmitButton";
-
-export default function GolfWatchAppWithAudioPlayRequest({
- game,
- sockToken,
-}: Omit<Props, "audioController">) {
- const [audioController, setAudioController] = useAtom(audioControllerAtom);
- const audioPlayPermitted = audioController !== null;
-
- if (audioPlayPermitted) {
- return <GolfWatchApp game={game} sockToken={sockToken} />;
- } else {
- return (
- <div className="min-h-screen bg-gray-100 flex items-center justify-center">
- <div className="text-center">
- <SubmitButton
- onClick={async () => {
- const audioController = new AudioController();
- await audioController.loadAll();
- await audioController.playDummySoundEffect();
- setAudioController(audioController);
- }}
- >
- 開始
- </SubmitButton>
- </div>
- </div>
- );
- }
-}