25 lines
546 B
JavaScript
25 lines
546 B
JavaScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import ListDoctors from "./listDoctors";
|
|
|
|
// Data
|
|
import Head from "./head";
|
|
|
|
function DoctorsPage({ matchedCity, matchedState, list }) {
|
|
const [doctors, setDoctors] = useState(list);
|
|
|
|
return (
|
|
<div className="pt-[95px] sm:pt-[120px] padding-responsive">
|
|
<Head
|
|
setDoctors={setDoctors}
|
|
matchedCity={matchedCity}
|
|
matchedState={matchedState}
|
|
/>
|
|
<ListDoctors doctors={doctors} setDoctors={setDoctors} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default DoctorsPage;
|