+
+ {action.icon && action.icon}
+
+
+ {ancestors.length > 0 &&
+ ancestors.map((ancestor) => (
+
+
+ {ancestor.name}
+
+
+ ›
+
+
+ ))}
+ {action.name}
+
+ {action.subtitle && (
+
{action.subtitle}
+ )}
+
+
+ {action.shortcut?.length ? (
+
+ {action.shortcut.map((sc) => (
+
+ {sc}
+
+ ))}
+
+ ) : null}
+
+ );
+ }
+);
+
+export default CommandBar;
diff --git a/portal-ui/src/screens/Console/ConsoleKBar.tsx b/portal-ui/src/screens/Console/ConsoleKBar.tsx
index 5630b0bc1..111320524 100644
--- a/portal-ui/src/screens/Console/ConsoleKBar.tsx
+++ b/portal-ui/src/screens/Console/ConsoleKBar.tsx
@@ -14,68 +14,11 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see