Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/room/screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { Monitor } from 'lucide-react';

const Screen = () => {
const { toggleScreen } = useMedia();

const canShare = !!(
navigator.mediaDevices && navigator.mediaDevices.getDisplayMedia
);
const screenOn = useScreenOn();

return (
Expand All @@ -16,6 +18,7 @@ const Screen = () => {
size="icon"
className={cn(
'w-12 h-12 rounded-xl transition-all duration-200 hidden md:flex bg-linear-to-tl text-white cursor-pointer',
!canShare && 'hidden',
screenOn
? 'bg-blue-600 hover:bg-blue-700 '
: ' from-white/15 to-white/1 backdrop-blur-xl'
Expand Down
Loading