import {RotateCcw} from 'lucide-react'; export type ViewMode='parts'|'materials'|'meshes'; export type InspectionPart={id:string;name:string;jointId?:string|null}; export type InspectionInfo={parts:InspectionPart[];triangles:number;meshDetail:'edges'|'wireframe'}; type Props={mode:ViewMode;amount:number;part:string;busy:boolean;info:InspectionInfo; onMode:(mode:ViewMode)=>void;onExplode:(value:number)=>void;onPart:(id:string)=>void;onReset:()=>void}; export default function VisualControls({mode,amount,part,busy,info,onMode,onExplode,onPart,onReset}:Props){ const modes:ViewMode[]=['parts','materials','meshes']; return
{modes.map(value=>)}
onExplode(+e.target.value)} disabled={info.parts.length<2||busy}/> {Math.round(amount*100)}%
{busy?'Preparing view…':mode==='meshes'?`${info.triangles.toLocaleString()} triangles${info.meshDetail==='wireframe'?' · wireframe':''}`:''}
; }