mirror of
https://github.com/p-stream/p-stream.git
synced 2026-05-12 08:10:55 +00:00
17 lines
477 B
TypeScript
17 lines
477 B
TypeScript
import { Icons } from "@/components/Icon";
|
|
import { VideoPlayerButton } from "@/components/player/internals/Button";
|
|
import { usePlayerStore } from "@/stores/player/store";
|
|
|
|
export function Airplay() {
|
|
const canAirplay = usePlayerStore((s) => s.interface.canAirplay);
|
|
const display = usePlayerStore((s) => s.display);
|
|
|
|
if (!canAirplay) return null;
|
|
|
|
return (
|
|
<VideoPlayerButton
|
|
onClick={() => display?.startAirplay()}
|
|
icon={Icons.AIRPLAY}
|
|
/>
|
|
);
|
|
}
|