You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
519 B
17 lines
519 B
import { useVideoPlayerDescriptor } from "@/video/state/hooks"; |
|
import { useSource } from "@/video/state/logic/source"; |
|
|
|
export function QualityDisplayAction() { |
|
const descriptor = useVideoPlayerDescriptor(); |
|
const source = useSource(descriptor); |
|
|
|
if (!source.source) return null; |
|
|
|
return ( |
|
<div className="rounded-md bg-denim-300 px-2 py-1 transition-colors"> |
|
<p className="text-center text-xs font-bold text-slate-300 transition-colors"> |
|
{source.source.quality} |
|
</p> |
|
</div> |
|
); |
|
}
|
|
|