'use client'; import { forwardRef, useImperativeHandle, useRef } from 'react'; import { OrbitControls, View as ViewImpl } from '@react-three/drei'; import { Three } from '@/webgl/helpers/Three'; const View = forwardRef(({ children, orbit, ...props }, ref) => { const localRef = useRef(null); useImperativeHandle(ref, () => localRef.current); return ( <>
{children} {orbit && } ); }); View.displayName = 'View'; export { View };