'use client'; import { useState } from 'react'; import { useRouter } from 'next/navigation'; import { Button } from '../ui/Button'; const propertyTypes = [ { value: 'residential', label: 'Residential' }, { value: 'commercial', label: 'Commercial' }, { value: 'luxury', label: 'Luxury Homes' }, { value: 'rentals', label: 'Rentals' }, ]; const categories = [ { value: 'buying', label: 'Buying Agent' }, { value: 'selling', label: 'Selling Agent' }, { value: 'investment', label: 'Investment' }, { value: 'property-management', label: 'Property Management' }, ]; export function HeroSection() { const router = useRouter(); const [searchParams, setSearchParams] = useState({ type: '', name: '', location: '', category: '', }); const handleSearch = () => { const params = new URLSearchParams(); if (searchParams.type) params.set('type', searchParams.type); if (searchParams.name) params.set('name', searchParams.name); if (searchParams.location) params.set('location', searchParams.location); if (searchParams.category) params.set('category', searchParams.category); router.push(`/agents?${params.toString()}`); }; return (
{/* Background Pattern */}
{/* City Skyline Pattern */}
{/* Headline */}

“Discover verified, top-rated real estate professionals to guide your buying, selling, or investing journey.”

Discover verified, top-rated real estate professionals

{/* Search Form */}
{/* Type Select */}
{/* Name Input */}
setSearchParams({ ...searchParams, name: e.target.value })} className="w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-[#00293d] focus:ring-2 focus:ring-[#00293d]/20 outline-none transition-all" />
{/* Location Input */}
setSearchParams({ ...searchParams, location: e.target.value })} className="w-full px-4 py-3 rounded-lg border border-gray-200 focus:border-[#00293d] focus:ring-2 focus:ring-[#00293d]/20 outline-none transition-all" />
{/* Category Select */}
{/* Quick Links */}
|
{/* Search Button */}
{/* Helper Text */}

Connect with trusted local agents to explore homes, compare options, and make smarter decisions.

); }