1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-22 14:57:40 +01:00
smov/__old/controls/LoadingControl.tsx

13 lines
323 B
TypeScript
Raw Normal View History

2023-01-10 19:53:55 +01:00
import { Spinner } from "@/components/layout/Spinner";
import { useVideoPlayerState } from "../VideoContext";
export function LoadingControl() {
const { videoState } = useVideoPlayerState();
2023-01-14 00:27:40 +01:00
const isLoading = videoState.isFirstLoading || videoState.isLoading;
if (!isLoading) return null;
2023-01-10 19:53:55 +01:00
return <Spinner />;
}