import type { MeshProps } from '@react-three/fiber' ; import type { ReactNode } from 'react' ; import { useAxisSystemContext } from './AxisSystemContext' ; interface Props extends MeshProps { children : ReactNode ; } function VisMesh ( props ) { const { children , ... meshProps } = props ; const { visSize } = useAxisSystemContext ( ) ; return ( < mesh { ... meshProps } > < planeGeometry args = { [ visSize . width , visSize . height ] } / > { children } < /mesh>); } export default VisMesh ;