mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-11 17:55:33 +00:00
14 lines
431 B
TypeScript
14 lines
431 B
TypeScript
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>
|
|
);
|
|
}
|