import React, { useState, useRef } from 'react'; import { Canvas, useFrame } from '@react-three/fiber'; import { Points, PointMaterial } from '@react-three/drei'; import * as random from 'maath/random'; import type { Points as PointsType } from 'three'; const Starfield: React.FC = () => { const ref = useRef(null); const [sphere] = useState(() => random.inSphere(new Float32Array(5000), { radius: 1.5 })); useFrame((state, delta) => { if (ref.current) { ref.current.rotation.x -= delta / 10; ref.current.rotation.y -= delta / 15; } }); return ( // FIX: Replaced with a rotation property on the component. // This resolves the "Property 'group' does not exist on type 'JSX.IntrinsicElements'" error // by avoiding the problematic element while keeping the same visual transformation. ); }; const HeroAnimation: React.FC = () => { return ( ); }; export default HeroAnimation;