- {filteredTools.map((tool) => (
-
- router.push(`/tools/${tool.tool_uuid}`)
- }
- >
-
+ <>
+ {/* Active Tools */}
+ {activeTools.length > 0 ? (
+
+ {activeTools.map((tool) => (
+ router.push(`/tools/${tool.tool_uuid}`)
+ }
>
-
-
-
-
-
- {tool.name}
-
- {getCategoryBadge(tool.category)}
- {getStatusBadge(tool.status)}
+
+
+ {renderToolIcon(tool.category)}
+
+
+
+
+ {tool.name}
+
+ {getCategoryBadge(tool.category)}
+
+ {tool.description && (
+
+ {tool.description}
+
+ )}
+
- {tool.description && (
-
- {tool.description}
-
- )}
+
-
-
+ ) : !searchQuery ? (
+
+
+ No active tools
+
+
- ))}
-
+ ) : null}
+
+ {/* Archived Tools */}
+ {archivedTools.length > 0 && (
+
+
+ Archived Tools
+
+
+ {archivedTools.map((tool) => (
+
+ router.push(`/tools/${tool.tool_uuid}`)
+ }
+ >
+
+
+ {renderToolIcon(tool.category)}
+
+
+
+
+ {tool.name}
+
+ {getCategoryBadge(tool.category)}
+ {getStatusBadge(tool.status)}
+
+ {tool.description && (
+
+ {tool.description}
+
+ )}
+
+
+
+
+ ))}
+
+
+ )}
+ >
)}
@@ -354,7 +458,10 @@ export default function ToolsPage() {