import React from 'react' import { Play, Pause, Maximize, Minimize, Minus, Plus, Download } from 'lucide-react' import { cn } from '@/ui/lib/utils' import { RulerSlider } from './ruler-slider' export interface ModelControlBarProps { isPlaying: boolean currentDegree: number zoom: number isFullScreen: boolean allowDownload?: boolean onDownload?: () => void togglePlay: () => void onSeekDegree: (degree: number) => void onZoomChange: (zoom: number) => void onZoomReset: () => void toggleFullScreen: () => void } export const ModelControlBar: React.FC = ({ isPlaying, currentDegree, zoom, isFullScreen, allowDownload = true, onDownload, togglePlay, onSeekDegree, onZoomChange, onZoomReset, toggleFullScreen, }) => { return (
{/* Unified Single Row Controls */}
{/* Left Side: Play/Pause, Degree Readout */}
{currentDegree}° / 360°
{/* Center: RulerSlider with encapsulated minus & plus buttons */}
{/* Right Side: Zoom controls, Download, Fullscreen */}
{/* Zoom controls */}
{/* Download */} {allowDownload && onDownload && ( )} {/* Fullscreen */}
) }