'use client'; import Image from 'next/image'; import { useState } from 'react'; import { CommonHeader } from '@/components/layout/CommonHeader'; import { Footer } from '@/components/layout/Footer'; const categories = [ { id: 'all', label: 'All Questions' }, { id: 'agent', label: 'Agent Resources' }, { id: 'buying', label: 'Buying a Home' }, { id: 'selling', label: 'Selling a Home' }, { id: 'platform', label: 'Platform & Account' }, ]; const faqs = [ { id: 1, icon: '/assets/icons/home-icon.svg', question: 'How do I update my listing status?', answer: 'To update your listing status, log in to your Agent Dashboard. Locate the property in your "Active Listings" tab, click the three-dot menu on the right, and select "Update Status." You can change it to Pending, Sold, or Temporarily Off Market. Changes are reflected immediately.', category: 'agent', }, { id: 2, icon: '/assets/icons/wallet-icon.svg', question: 'What is the pre-approval process?', answer: 'The pre-approval process involves submitting your financial documents to a lender who will review your credit history, income, assets, and debts. Once approved, you\'ll receive a pre-approval letter stating how much you can borrow, which strengthens your position when making offers on properties.', category: 'buying', }, { id: 3, icon: '/assets/icons/calendar-orange-icon.svg', question: 'How do I schedule an open house?', answer: 'To schedule an open house, navigate to your Agent Dashboard and select the property you want to showcase. Click on "Schedule Open House" and choose your preferred date and time. You can add details about the event and it will be automatically listed on the property page for potential buyers to see.', category: 'agent', }, { id: 4, icon: '/assets/icons/reset-icon.svg', question: 'How do I reset my password?', answer: 'To reset your password, click on the "Login" button and then select "Forgot Password." Enter your registered email address and we\'ll send you a password reset link. Follow the link to create a new password. For security, the link expires after 24 hours.', category: 'platform', }, { id: 5, icon: '/assets/icons/contact-icon.svg', question: 'How do I contact a listing agent directly?', answer: 'You can contact a listing agent by visiting the property page and clicking the "Contact Agent" button. You\'ll be able to send a message directly to the agent through our secure messaging system. Alternatively, you can call the agent using the phone number displayed on their profile.', category: 'buying', }, { id: 6, icon: '/assets/icons/caution-icon.svg', question: 'What if I find inaccurate data on a listing?', answer: 'If you find inaccurate information on a listing, please use the "Report Issue" button on the property page. Describe the inaccuracy and our team will review and correct it within 24-48 hours. You can also contact the listing agent directly to request corrections.', category: 'platform', }, ]; export default function FAQPage() { const [activeCategory, setActiveCategory] = useState('all'); const [expandedFaq, setExpandedFaq] = useState(1); const filteredFaqs = activeCategory === 'all' ? faqs : faqs.filter(faq => faq.category === activeCategory); const toggleFaq = (id: number) => { setExpandedFaq(expandedFaq === id ? null : id); }; return (
{/* Header */}
{/* Main Content */}
{/* Categories Sidebar */}
{/* Sidebar Header */}

Categories

{/* Category Items */}
{categories.map((category) => ( ))}
{/* FAQ Content */}
{/* Title */}

Frequently Asked Questions ?

{/* FAQ Accordion */}
{filteredFaqs.map((faq) => (
{expandedFaq === faq.id && (

{faq.answer}

)}
))}
{/* Still Need Help Section */}

Still Need Help ?

Our Support Team Is Available
Mon-Fri, 9am-6pm IST

{/* Footer */}
); }