import { extend, type ElementProps, type ThreeElement } from '@react-three/fiber' import type { FC } from 'react' import type { Mesh } from 'three' import { EllipsoidGeometry } from '../EllipsoidGeometry' declare module '@react-three/fiber' { interface ThreeElements { ellipsoidGeometry: ThreeElement } } export interface EllipsoidMeshProps extends Omit< ElementProps, 'args' > { args?: ConstructorParameters } export const EllipsoidMesh: FC = ({ ref: forwardedRef, args, children, ...props }) => { extend({ EllipsoidGeometry }) return ( {children} ) }