import { useContext } from "react";
import { VideoPlayerContext } from "../VideoPlayer";
import { ChevronUpDownIcon } from "@heroicons/react/24/solid";
import { PlaybackSpeed } from "../type";
export default function Speed() {
const {
setIsSpeedOpen,
isSpeedOpen,
playbackSpeed,
setPlaybackSpeed,
videoRef,
} = useContext(VideoPlayerContext);
return (
<>
{isSpeedOpen && (
{[0.5, 0.75, 1.0, 1.25, 1.5, 2.0].map(
(speed) => (
)
)}
)}
>
);
}