2025-04-24 17:51:52 +05:30
|
|
|
import { useEffect } from "react";
|
2025-04-24 09:47:44 +05:30
|
|
|
import RoboticArmInstances from "./instances/roboticArmInstances";
|
|
|
|
|
import { useArmBotStore } from "../../../store/simulation/useArmBotStore";
|
2025-05-03 12:25:10 +05:30
|
|
|
import { useSelectedEventData, useSelectedEventSphere } from "../../../store/simulation/useSimulationStore";
|
2025-04-30 16:50:31 +05:30
|
|
|
import ArmBotUI from "../ui/arm/armBotUI";
|
2025-04-23 12:29:16 +05:30
|
|
|
|
|
|
|
|
function RoboticArm() {
|
2025-05-03 12:25:10 +05:30
|
|
|
const { armBots } = useArmBotStore();
|
2025-04-30 16:50:31 +05:30
|
|
|
const { selectedEventSphere } = useSelectedEventSphere();
|
|
|
|
|
const { selectedEventData } = useSelectedEventData();
|
2025-05-02 17:35:52 +05:30
|
|
|
|
2025-04-24 09:47:44 +05:30
|
|
|
useEffect(() => {
|
2025-05-03 12:25:10 +05:30
|
|
|
// console.log('armBots: ', armBots);
|
2025-05-02 17:35:52 +05:30
|
|
|
}, [armBots])
|
2025-04-24 17:51:52 +05:30
|
|
|
|
2025-04-23 12:29:16 +05:30
|
|
|
return (
|
|
|
|
|
<>
|
2025-05-03 12:25:10 +05:30
|
|
|
|
2025-04-23 12:29:16 +05:30
|
|
|
<RoboticArmInstances />
|
2025-05-03 12:25:10 +05:30
|
|
|
|
2025-05-02 17:35:52 +05:30
|
|
|
{selectedEventSphere && selectedEventData?.data.type === "roboticArm" &&
|
2025-04-30 16:50:31 +05:30
|
|
|
< ArmBotUI />
|
|
|
|
|
}
|
2025-05-03 12:25:10 +05:30
|
|
|
|
2025-04-23 12:29:16 +05:30
|
|
|
</>
|
2025-04-24 09:47:44 +05:30
|
|
|
);
|
2025-04-23 12:29:16 +05:30
|
|
|
}
|
|
|
|
|
|
2025-04-24 09:47:44 +05:30
|
|
|
export default RoboticArm;
|