Files
nobat724_front/components/specialties/detail/DoctorGrid.js
T
hamed fd48b48613 feat: add canonical URL handling and entity quality checks
- Implemented canonical URL strategies for city-specific domains and entities.
- Added helper functions for domain and city resolution.
- Created tests for canonical URL generation and domain resolution.
- Introduced entity quality checks for doctors and clinics to ensure meaningful content.
- Developed unique introductory texts for listing pages to avoid duplicate content.
- Established robots.txt policies for listing pages to manage indexing based on user filters.
- Enhanced specialty content with dynamic introductions and FAQs to improve SEO.
2026-07-19 07:52:50 +03:30

34 lines
946 B
JavaScript

"use client";
import { useState } from "react";
import ItemDoctor from "@/app/component/ItemDoctor";
// همان گرید و همان کارت پزشکِ /doctors — فقط بدون ماشین فیلتر، چون این صفحه
// از قبل روی «تخصص + شهر» فیلتر شده و لیستش SSR می‌آید.
function DoctorGrid({ doctors: initialDoctors = [] }) {
const [doctors, setDoctors] = useState(initialDoctors);
if (!doctors.length) {
return (
<p className="text-center py-10 text-gray-500">
دکتری برای نمایش وجود ندارد.
</p>
);
}
return (
<ul className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[24px]">
{doctors.map((doctor, idx) => (
<ItemDoctor
key={doctor.id}
doctor={doctor}
priority={idx < 3}
setDoctors={setDoctors}
/>
))}
</ul>
);
}
export default DoctorGrid;