feat: loading bar

This commit is contained in:
TrèsAbhi committed 2024-05-04 16:44:37 -05:00
1 parent a5b3177394
commit c069d132c1
1 file changed
+2 -2
@@ -1,12 +1,12 @@
import { Progress } from '@radix-ui/themes';
import { Html, useProgress } from '@react-three/drei';
import { Loader } from '../../../../../../../components/Loader';
export function ModelLoader() {
const { progress } = useProgress();
return (
<Html center position={[0, 1.5, 0]}>
<Loader naked progress={progress / 100} />
<Progress value={progress} style={{ width: 160 }} />
</Html>
);
}