import type { RemoteTrack } from 'livekit-client'; import { useEffect, useRef, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { type RemoteScreenShare, useCall } from '../context/CallContext'; import { MonitorShareIcon } from './icons'; interface ScreenShareViewerProps { share: RemoteScreenShare; avatarUrl: string | null; displayName: string; /** Suppress the in-share fullscreen toggle button. Used inside cinema * mode where (a) the window is already OS-fullscreen and (b) the * toggle collides visually with FullscreenCall's strip-hidden button * at the same top-right corner. */ hideFullscreenToggle?: boolean; } // Click-to-watch gate, live