File size: 730 Bytes
20c8fc2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Loader } from "@react-three/drei";
import { Canvas } from "@react-three/fiber";
import { Leva } from "leva";
import { Scenario } from "./Scenario";
import { ChatInterface } from "./ChatInterface";
import ErrorBoundary from "./ErrorBoundary";

export default function AvatarSession() {
    return (
        <ErrorBoundary>
            <Loader />
            <Leva collapsed hidden />
            <Canvas
                shadows
                camera={{ position: [0, 0, 0], fov: 10 }}
                style={{ position: 'fixed', top: 0, left: 0, width: '100vw', height: '100vh', zIndex: 1 }}
            >
                <Scenario />
            </Canvas>
            <ChatInterface />
        </ErrorBoundary>
    );
}