chore: use enum

This commit is contained in:
Adrian Castro
2024-02-20 09:01:56 +01:00
parent b387273573
commit e0ee1c00b9
2 changed files with 10 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import type { ItemData } from "~/components/item/item";
import { ScraperProcess } from "~/components/player/ScraperProcess";
import { VideoPlayer } from "~/components/player/VideoPlayer";
import { usePlayer } from "~/hooks/player/usePlayer";
import { PlayerStatus } from "~/stores/player/slices/interface";
import { usePlayerStore } from "~/stores/player/store";
export default function VideoPlayerWrapper() {
@@ -20,7 +21,8 @@ export default function VideoPlayerWrapper() {
void presentFullscreenPlayer();
if (playerStatus === "scraping") return <ScraperProcess data={data} />;
if (playerStatus === PlayerStatus.SCRAPING)
return <ScraperProcess data={data} />;
if (playerStatus === "ready") return <VideoPlayer />;
if (playerStatus === PlayerStatus.READY) return <VideoPlayer />;
}