import * as THREE from 'three'
import Proyector from './Proyector'
import React, { useRef } from 'react'
import ObraAudio from '../../ObraAudio'

export default function Model(props: JSX.IntrinsicElements['group']) {
  const group = useRef<THREE.Group>()
  return (
    <group ref={group} {...props} dispose={null}>
      <Proyector wide videoSrc="/video/sagasti.mp4" />
      <ObraAudio url="/audio/sagasti.ogg" loop distance={2} />
    </group>
  )
}
