add: repair game inspection sub state

This commit is contained in:
Tom Boullay
2026-05-08 01:27:32 +01:00
parent f15d08de95
commit c9db2637a6
12 changed files with 310 additions and 31 deletions
@@ -0,0 +1,34 @@
import { Html } from "@react-three/drei";
import type { Vector3Tuple } from "@/types/three/three";
interface RepairPromptVideoProps {
src: string;
position?: Vector3Tuple;
size?: number;
}
export function RepairPromptVideo({
src,
position = [0, 1.8, 0],
size = 96,
}: RepairPromptVideoProps): React.JSX.Element {
return (
<Html position={position} center transform occlude={false}>
<video
aria-hidden="true"
autoPlay
loop
muted
playsInline
src={src}
style={{
display: "block",
height: size,
objectFit: "contain",
pointerEvents: "none",
width: size,
}}
/>
</Html>
);
}