-
- {expandedSections.popularFilters && (
-
- {popularFilters.map((filter, index) => (
-
- ))}
+ {filterFields.map((field, index) => (
+
+
+
+ {expandedSections[field.slug] && (
+
6 ? 'grid-cols-3' : 'grid-cols-4'} gap-x-4 gap-y-3`}>
+ {field.options.map((option) => (
+
+ ))}
+
+ )}
- )}
-
+ {index < filterFields.length - 1 &&
}
+
+ ))}
-
-
- {/* Client Specialization */}
-
-
- {expandedSections.clientSpecialization && (
- <>
-
- {clientSpecializations.slice(0, 5).map((option) => (
-
- ))}
-
-
- >
- )}
-
-
-
-
- {/* Loan Type */}
-
-
- {expandedSections.loanType && (
- <>
-
- {loanTypes.map((option) => (
-
- ))}
-
-
- >
- )}
-
-
-
-
- {/* Property Type */}
-
-
- {expandedSections.propertyType && (
- <>
-
- {propertyTypes.map((option) => (
-
- ))}
-
-
- >
- )}
-
-
-
-
- {/* Special Interests and Hobbies */}
-
-
- {expandedSections.specialInterests && (
- <>
-
- {specialInterests.map((option) => (
-
- ))}
-
-
- >
- )}
-
-
-
-
- {/* Price Point */}
-
-
- {expandedSections.pricePoint && (
-
- {pricePoints.map((option) => (
-
- ))}
-
- )}
-
+ {filterFields.length === 0 && (
+
+ )}
{/* Footer */}
diff --git a/src/services/profile-sections.service.ts b/src/services/profile-sections.service.ts
index 5be5b75..207401e 100644
--- a/src/services/profile-sections.service.ts
+++ b/src/services/profile-sections.service.ts
@@ -97,6 +97,14 @@ interface ApiResponse