import React, { useState, useEffect, useRef } from 'react'; import { Play, Volume2, VolumeX } from 'lucide-react'; import { MediaFile } from '../types'; import { cn } from '../lib/utils'; interface MediaRendererProps { file: MediaFile; className?: string; isFullView?: boolean; /** Hold playback: the feed keeps every off-screen video paused. */ paused?: boolean; /** Cap media height to this instead of the default full-view ceiling. */ heightCap?: string; /** * Size video to the container width rather than its own intrinsic size. * * A