import FeaturedPropertyCard from '@/components/FeaturedPropertyCard'; import connectDB from '@/config/database'; import Property from '@/models/Property'; const FeaturedProperties = async () => { await connectDB(); const properties = await Property.find({ is_featured: true, }).lean(); return properties.length > 0 ? (

Featured Properties

{properties.map((property) => ( ))}
) : null; }; export default FeaturedProperties;