import { Canvas, useFrame } from '@react-three/fiber' import { useRef } from 'react' function GroupedStructure({ position = [0, 0, 0], direction = 1 }) { const groupRef = useRef() useFrame((state) => { const seconds = state.clock.elapsedTime if (!groupRef.current) return groupRef.current.rotation.y = direction * seconds * 0.7 groupRef.current.rotation.x = Math.sin(seconds * 1.1) * 0.2 }) return ( ) } export default GroupedStructure // export default function GroupApp() { // return ( // // // // // // // // ) // }