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
800 B
17 lines
800 B
2 months ago
|
import { PiCopy, PiCpu, PiCpuFill } from "react-icons/pi";
|
||
|
import { MdOutlineSmartDisplay } from "react-icons/md";
|
||
|
|
||
|
export default function PlayStatusIcon({ videoDecision, audioDecision, opacity }) {
|
||
|
return (
|
||
|
<div className="self-center text-base flex z-10">
|
||
|
{videoDecision === "direct play" && audioDecision === "direct play" && (
|
||
|
<MdOutlineSmartDisplay className={opacity} />
|
||
|
)}
|
||
|
{videoDecision === "copy" && audioDecision === "copy" && <PiCopy className={opacity} />}
|
||
|
{videoDecision !== "copy" && videoDecision !== "direct play" && <PiCpuFill className={opacity} />}
|
||
|
{(videoDecision === "copy" || videoDecision === "direct play") &&
|
||
|
(audioDecision !== "copy" && audioDecision !== "direct play") && <PiCpu className={opacity} />}
|
||
|
</div>
|
||
|
);
|
||
|
}
|