mirror of
https://github.com/movie-web/movie-web.git
synced 2024-06-03 04:28:45 +02:00
28 lines
710 B
TypeScript
28 lines
710 B
TypeScript
// import { useCallback, useContext } from "react";
|
|
// import {
|
|
// VideoPlayerContext,
|
|
// VideoPlayerDispatchContext,
|
|
// } from "../VideoContext";
|
|
|
|
export function FullscreenControl() {
|
|
return <p>Hello world</p>;
|
|
// const dispatch = useContext(VideoPlayerDispatchContext);
|
|
// const video = useContext(VideoPlayerContext);
|
|
|
|
// const handleClick = useCallback(() => {
|
|
// dispatch({
|
|
// type: "FULLSCREEN",
|
|
// do: video.fullscreen ? "EXIT" : "ENTER",
|
|
// });
|
|
// }, [video, dispatch]);
|
|
|
|
// let text = "not fullscreen";
|
|
// if (video.fullscreen) text = "in fullscreen";
|
|
|
|
// return (
|
|
// <button type="button" onClick={handleClick}>
|
|
// {text}
|
|
// </button>
|
|
// );
|
|
}
|