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
2023-01-10 19:53:55 +01:00

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 />;
}