'use client'; import { useState, useEffect, useCallback, Suspense } from 'react'; import { useSearchParams } from 'next/navigation'; import Image from 'next/image'; import Link from 'next/link'; import { FilterModal, FilterState, FilterField } from '@/components/profiles/FilterModal'; import { agentsService, AgentType, PublicAgentProfile, SearchAgentsParams } from '@/services/agents.service'; import { profileSectionsService, FilterableField } from '@/services/profile-sections.service'; import { uploadService } from '@/services/upload.service'; interface FilterSectionProps { title: string; options: { label: string; value: string }[]; selectedOptions: string[]; onToggle: (optionValue: string) => void; showMore?: boolean; } function FilterSection({ title, options, selectedOptions, onToggle, showMore }: FilterSectionProps) { const [expanded, setExpanded] = useState(false); const displayOptions = expanded ? options : options.slice(0, 6); return (
{profile.agentType?.name || 'Real Estate Professional'}
{showFullBio ? description : truncatedDescription} {description.length > 200 && ( <> {' '} > )}
Expertise:
Loading filters...
Loading agents...
{error}
Try adjusting your search criteria or filters
Loading...