mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-07 12:59:24 +00:00
10 lines
262 B
TypeScript
10 lines
262 B
TypeScript
import { Spinner } from "@/components/layout/Spinner";
|
|
import { useVideoPlayerState } from "../VideoContext";
|
|
|
|
export function LoadingControl() {
|
|
const { videoState } = useVideoPlayerState();
|
|
|
|
if (!videoState.isLoading) return null;
|
|
|
|
return <Spinner />;
|
|
}
|