1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-23 15:07:43 +01:00
smov/src/components/video/controls/LoadingControl.tsx

11 lines
262 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();
if (!videoState.isLoading) return null;
2023-01-10 19:53:55 +01:00
return <Spinner />;
}