import React from 'react'; import { DesktopProgressBar } from './DesktopProgressBar'; import { DesktopLeftControls } from './DesktopLeftControls'; import { DesktopRightControls } from './DesktopRightControls'; interface DesktopControlsProps { showControls: boolean; isPlaying: boolean; currentTime: number; duration: number; volume: number; isMuted: boolean; isFullscreen: boolean; showVolumeBar: boolean; isPiPSupported: boolean; isAirPlaySupported: boolean; isCastAvailable: boolean; isProxied?: boolean; progressBarRef: React.RefObject; volumeBarRef: React.RefObject; onTogglePlay: () => void; onToggleMute: () => void; onVolumeChange: (e: React.MouseEvent) => void; onVolumeMouseDown: (e: React.MouseEvent) => void; onToggleFullscreen: () => void; onTogglePictureInPicture: () => void; onShowAirPlayMenu: () => void; onShowCastMenu: () => void; onProgressClick: (e: React.MouseEvent) => void; onProgressMouseDown: (e: React.MouseEvent) => void; onProgressTouchStart: (e: React.TouchEvent) => void; formatTime: (seconds: number) => string; } export function DesktopControls(props: DesktopControlsProps) { const { showControls, currentTime, duration, progressBarRef, onProgressClick, onProgressMouseDown, onProgressTouchStart, formatTime, } = props; return (
{/* Progress Bar */} {/* Controls Bar */}
); }