mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +01: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 />;
|
|
}
|