-
-
- { }}
- onChange={(value) => console.log(value)}
- />
-
-
-
- { }}
- onChange={(value) => console.log(value)}
- />
-
+
+ {currentEventData &&
+ <>
+
+
{selectedEventData?.data.modelName}
-
- {getAssetType() === 'roboticArm' &&
-
-
-
-
-
- {actions.map((action) => (
-
-
handleActionToggle(action.uuid)}
- >
-
-
- {actions.length > 1 && (
-
handleDeleteAction(action.uuid)}
- >
-
-
- )}
-
- ))}
-
-
handleResize(e, actionsContainerRef)}
- >
-
-
-
-
-
- }
-
-
-
-
-
-
setActiveOption(option)}
- />
- {activeOption === "default" && }
- {activeOption === "spawn" && }
- {activeOption === "swap" && }
- {activeOption === "despawn" && }
- {activeOption === "travel" && }
- {activeOption === "pickAndPlace" && }
- {activeOption === "process" && }
- {activeOption === "store" && }
-
-
-
-
-
-
- }
+ {assetType === 'conveyor' &&
}
+ {assetType === 'vehicle' &&
}
+ {assetType === 'roboticArm' &&
}
+ {assetType === 'machine' &&
}
+ {assetType === 'storageUnit' &&
}
+ >
+ }
+
>
);
};
-export default EventProperties;
+export default EventProperties;
\ No newline at end of file
diff --git a/app/src/components/layout/sidebarRight/properties/eventProperties/actions/DelayAction.tsx b/app/src/components/layout/sidebarRight/properties/eventProperties/actions/DelayAction.tsx
new file mode 100644
index 0000000..2bb63d4
--- /dev/null
+++ b/app/src/components/layout/sidebarRight/properties/eventProperties/actions/DelayAction.tsx
@@ -0,0 +1,30 @@
+import React from "react";
+import InputWithDropDown from "../../../../../ui/inputs/InputWithDropDown";
+
+interface DelayActionProps {
+ value: string;
+ defaultValue: string;
+ min: number;
+ max: number;
+ onChange: (value: string) => void;
+}
+
+const DelayAction: React.FC