import { Object3D } from "three"; import { useDeletableEventSphere, useSelectedEventSphere } from "../../../../store/simulation/useSimulationStore"; import { useBuilderStore } from "../../../../store/builder/useBuilderStore"; import * as CONSTANTS from "../../../../types/world/worldConstants"; import OutlineInstance from "./outlineInstance/outlineInstance"; function flattenChildren(children: Object3D[]): Object3D[] { return children.flatMap((child) => [child, ...flattenChildren(child.children)]); } function OutlineInstances() { const { selectedEventSphere } = useSelectedEventSphere(); const { deletableEventSphere } = useDeletableEventSphere(); const { selectedAisle, selectedWall, selectedDecal, selectedFloor, selectedWallAsset, deletableWallAsset, selectedFloorAsset, deletableFloorAsset, deletableDecal } = useBuilderStore(); return ( <> {/* Aisle / Wall / Floor */} {/* Decals */} {/* Event Spheres */} ) } export default OutlineInstances;