/*
Auto-generated by: https://github.com/pmndrs/gltfjsx
*/

import * as THREE from 'three'
import React, { useRef } from 'react'
import { useGLTF } from '@react-three/drei/useGLTF'

import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'

type GLTFResult = GLTF & {
  nodes: {
    museum_building014: THREE.Mesh
  }
  materials: {
    lhli: THREE.MeshStandardMaterial
  }
}

export default function Model(props: JSX.IntrinsicElements['group']) {
  const group = useRef<THREE.Group>()
  const { nodes, materials } = useGLTF('/model/obras/juan_cruz.glb') as GLTFResult
  return (
    <group ref={group} {...props} dispose={null} position={[2, 0.05, 0]}>
      <mesh material={materials.lhli} geometry={nodes.museum_building014.geometry} />
    </group>
  )
}

useGLTF.preload('/model/obras/juan_cruz.glb')
