mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-22 14:57:40 +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>;
|
||
|
}
|