import { useViewerStore } from '../../store/viewerStore'; import type { Axis } from '../../types/viewer'; export interface ViewerControlsPanelProps { className?: string; } const AXES: Axis[] = ['x', 'y', 'z']; export function ViewerControlsPanel({ className = '' }: ViewerControlsPanelProps) { const display = useViewerStore((state) => state.display); const setExplodedView = useViewerStore((state) => state.setExplodedView); const setWireframe = useViewerStore((state) => state.setWireframe); const setAnnotations = useViewerStore((state) => state.setAnnotations); const setGrid = useViewerStore((state) => state.setGrid); const setShadows = useViewerStore((state) => state.setShadows); const setExposure = useViewerStore((state) => state.setExposure); const setCrossSection = useViewerStore((state) => state.setCrossSection); return ( ); } function Section({ title, children }: { title: string; children: React.ReactNode }) { return (

{title}

{children}
); } function ControlRow({ label, children }: { label: string; children: React.ReactNode }) { return (
{label} {children}
); } function Toggle({ checked, onChange, label }: { checked: boolean; onChange: (checked: boolean) => void; label: string; }) { return ( ); }