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.
homepage/src/utils/media/playStatusIcon.jsx

17 lines
800 B

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>
);
}