import { useContext } from "react";
import { VideoPlayerContext } from "../VideoPlayer";
import { AnimatePresence, motion } from "framer-motion";
import { Cog6ToothIcon } from "@heroicons/react/24/solid";
export default function Setting() {
const {
isSettingsOpen,
setIsSettingsOpen,
resolution,
setResolution,
resolutions,
} = useContext(VideoPlayerContext);
return (
<>
{isSettingsOpen && (
{/* 清晰度选择器 */}
清晰度
{resolutions.map((res) => (
))}
)}
>
);
}