mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
12 lines
323 B
TypeScript
12 lines
323 B
TypeScript
import { Spinner } from "@/components/layout/Spinner";
|
|
import { useVideoPlayerState } from "../VideoContext";
|
|
|
|
export function LoadingControl() {
|
|
const { videoState } = useVideoPlayerState();
|
|
|
|
const isLoading = videoState.isFirstLoading || videoState.isLoading;
|
|
|
|
if (!isLoading) return null;
|
|
|
|
return <Spinner />;
|
|
}
|