+ {visibleCommands.map((cmd: any, index: number) => {
+ const desc = getLocalizedCommandDescription(cmd.description, activeLang);
+ const cmdCopyKey = `cmd-${cmd.id || index}`;
+ const permCopyKey = `perm-${cmd.id || index}`;
+ const formattedName = cmd.name?.startsWith('/') ? cmd.name : `/${cmd.name}`;
- return (
-
- {/* Command row */}
-
-
- {formattedName}
-
-
-
-
- {/* Permission row */}
- {cmd.permission ? (
+ return (
+
+ {/* Command row */}
-
-
-
- {cmd.permission}
-
-
+
+ {formattedName}
+
- ) : null}
- {/* Description */}
- {desc ? (
-
- {desc}
-
- ) : null}
-
- );
- })}
+ {/* Permission row */}
+ {cmd.permission ? (
+
+
+
+
+ {cmd.permission}
+
+
+
+
+ ) : null}
+
+ {/* Description */}
+ {desc ? (
+
+ {desc}
+
+ ) : null}
+