refactor: split hooks types and utils by domain

This commit is contained in:
Tom Boullay
2026-04-30 11:49:18 +02:00
parent 081e87c96d
commit c698b9ef78
65 changed files with 83 additions and 84 deletions
@@ -2,8 +2,8 @@ import type { ReactNode } from "react";
import { Component, useEffect, useMemo } from "react";
import { useFrame } from "@react-three/fiber";
import { useGLTF } from "@react-three/drei";
import { ExplodedModel } from "@/utils/ExplodedModel";
import type { Vector3Tuple } from "@/types/three";
import { ExplodedModel } from "@/utils/three/ExplodedModel";
import type { Vector3Tuple } from "@/types/three/three";
interface ModelErrorBoundaryProps {
children: ReactNode;
@@ -52,7 +52,7 @@ export function ExplodableModel(
return (
<ModelErrorBoundary
key={props.modelPath}
fallback={<MissingModelFallback position={props.position} />}
fallback={<MissingModelFallback position={props.position ?? [0, 0, 0]} />}
>
<ExplodableModelInner {...props} />
</ModelErrorBoundary>