"use client"; import * as THREE from "three"; import { RigidBody, CuboidCollider } from "@react-three/rapier"; import { useEditorStore } from "@/lib/store"; interface GroundPlaneProps { position?: [number, number, number] | null; rotation?: [number, number, number] | null; scale?: [number, number, number] | null; material?: { color?: string | null; metalness?: number | null; roughness?: number | null; } | null; size?: number | null; } export function GroundPlane({ position, material, size }: GroundPlaneProps) { const isPlaying = useEditorStore((s) => s.isPlaying); const s = size ?? 5000; const pos: [number, number, number] = position ?? [0, -0.1, 0]; const plane = ( ); if (!isPlaying) return plane; return ( ); }