import Link from "./Link";
import Share from "./Share";
import Title from "./Title";
import AboutDcotor from "./cards/AboutDcotor";
import Comments from "./cards/comments";
import Locations from "./cards/locations";

function DetailDoctor({ doctor, comments, rateAggregate, addresses }) {
  return (
    <div className="w-full lg:w-[59%]">
      <div className="hidden lg:flex">
        <Share data={doctor} />
      </div>
      <Title doctor={doctor} />
      <Link />
      <AboutDcotor doctor={doctor} />
      <Locations addresses={addresses} />
      <Comments
        doctor={doctor}
        comments={comments}
        rateAggregate={rateAggregate}
      />
    </div>
  );
}

export default DetailDoctor;
