import CustomLoading from "@/app/component/loading/Custom";
import Image from "next/image";
import React from "react";

function Img({ url }) {
  return (
    <div className="w-full">
      <CustomLoading loading={true} width="full" height={190}>
        <Image
          className="rounded-[8px] overflow-hidden"
          src={url || "/assets/images/clinic-img.png"}
          alt="img clinic"
          height={204}
          width={288}
        />
      </CustomLoading>
    </div>
  );
}

export default Img;
