import { CirclePause, CirclePlay, Mouse, MousePointer2 } from 'lucide-react'; import type { InteractionMode, ViewerSelection } from '../../viewer/MuJoCoViewer'; import { Badge, Kbd } from '../../components/ui'; const labels: Record = { select: '选择', joint: '关节拖动', force: '外力施加', }; const primaryGestures: Record = { select: '左键旋转', joint: '左键拖动关节', force: '左键拖动施力', }; export function ViewportHUD({ paused, mode, selection, ready, }: { paused: boolean; mode: InteractionMode; selection: ViewerSelection | null; ready: boolean; }) { if (!ready) return null; return ( <>
{paused ? : } {paused ? '已暂停' : '仿真中'} {labels[mode]} {selection && ( {selection.bodyName} )}
); }