+ {/* Search Input */}
+
+
+ setSearchQuery(e.target.value)}
+ className="!pl-9"
+ />
+
+
+ {/* Category Pills */}
+
+
+ {categories.map((category) => (
+
+ ))}
+
+
+
{/* Info Card */}
@@ -101,15 +167,21 @@ export default function Modules() {
{/* Module Categories */}
- {categories.map((category) => {
- const modules = modulesData?.grouped[category as keyof typeof modulesData.grouped] || [];
+ {Object.keys(filteredGrouped).length === 0 && (
+
+
+
{__('No modules found matching your search')}
+
+ )}
+
+ {Object.entries(filteredGrouped).map(([category, modules]) => {
if (modules.length === 0) return null;
return (
@@ -138,6 +210,11 @@ export default function Modules() {
{__('Active')}
)}
+ {module.is_addon && (
+
+ {__('Addon')}
+
+ )}
{module.description}
@@ -159,8 +236,21 @@ export default function Modules() {
)}
- {/* Toggle Switch */}
-