From 17fbe2fadc7c8a4ce9c796f92f1f86a7fb3d60fe Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 06:49:10 +0200 Subject: [PATCH] Refactor interaction links rendering in App.tsx --- src/app/App.tsx | 146 ++---------------------------------------------- 1 file changed, 6 insertions(+), 140 deletions(-) diff --git a/src/app/App.tsx b/src/app/App.tsx index d1d8da3a..62e0f69d 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -2892,146 +2892,12 @@ export function App({ store, initialStatusMessage }: AppProps) { -
-
Links
- {selectedTriggerVolumeLinks.length === 0 ? ( -
No trigger links authored yet.
- ) : ( -
- {selectedTriggerVolumeLinks.map((link, index) => ( -
-
- {`Link ${index + 1}`} - {getInteractionActionLabel(link)} -
- -
-
- - -
-
- - {link.action.type === "teleportPlayer" ? ( -
- -
- ) : ( -
-
- - -
-
- )} - -
- -
-
- ))} -
- )} - -
- - -
-
+ {renderInteractionLinksSection( + selectedTriggerVolume, + selectedTriggerVolumeLinks, + "add-trigger-teleport-link", + "add-trigger-visibility-link" + )} ) : null}