basic style doctor page

This commit is contained in:
Ehsan
2024-06-27 17:06:05 +03:30
parent 1f70079845
commit 855f31eed8
7 changed files with 64 additions and 12 deletions
+16
View File
@@ -0,0 +1,16 @@
import DoctorPage from "@/components/doctor";
import doctors from '@/data/doctors.json';
import Layout from "@/components/layout";
function Doctor({ params: { slug } }) {
const doctor = doctors.find(item => item.id === +slug);
return (
<Layout title='دکتر ها'>
<DoctorPage doctor={doctor} />
</Layout>
)
}
export default Doctor