mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-14 23:39:10 +01:00
10 lines
213 B
TypeScript
10 lines
213 B
TypeScript
|
import { useVideoPlayerState } from "../VideoContext";
|
||
|
|
||
|
export function LoadingControl() {
|
||
|
const { videoState } = useVideoPlayerState();
|
||
|
|
||
|
if (!videoState.isLoading) return null;
|
||
|
|
||
|
return <p>Loading...</p>;
|
||
|
}
|