import type { MeshProps } from '@react-three/fiber'; import type { Size } from '../models'; import { useAxisSystemContext } from './AxisSystemProvider'; interface Props extends MeshProps { size?: Size; } function VisMesh(props: Props) { const { children, size, ...meshProps } = props; const { visSize } = useAxisSystemContext(); const { width, height } = size ?? visSize; return ( {children} ); } export type { Props as VisMeshProps }; export default VisMesh;