mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-23 15:07:43 +01: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 />;
|
|
}
|