mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-22 14:57:40 +01:00
21 lines
589 B
TypeScript
21 lines
589 B
TypeScript
|
import { useVideoPlayerState } from "../VideoContext";
|
||
|
import { PauseControl } from "./PauseControl";
|
||
|
import { SkipTimeBackward, SkipTimeForward } from "./TimeControl";
|
||
|
|
||
|
export function MobileCenterControl() {
|
||
|
const { videoState } = useVideoPlayerState();
|
||
|
|
||
|
const isLoading = videoState.isFirstLoading || videoState.isLoading;
|
||
|
|
||
|
return (
|
||
|
<div className="flex items-center space-x-8">
|
||
|
<SkipTimeBackward />
|
||
|
<PauseControl
|
||
|
iconSize="text-5xl"
|
||
|
className={isLoading ? "pointer-events-none opacity-0" : ""}
|
||
|
/>
|
||
|
<SkipTimeForward />
|
||
|
</div>
|
||
|
);
|
||
|
}
|