1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-22 14:57:40 +01:00
smov/__old/controls/QualityDisplayControl.tsx

15 lines
431 B
TypeScript
Raw Normal View History

import { useContext } from "react";
import { VideoPlayerContext } from "../VideoContext";
export function QualityDisplayControl() {
const videoPlayerContext = useContext(VideoPlayerContext);
return (
<div className="rounded-md bg-denim-300 py-1 px-2 transition-colors">
<p className="text-center text-xs font-bold text-slate-300 transition-colors">
{videoPlayerContext.quality}
</p>
</div>
);
}