import AdCard from "../components/cards/AdCard";

<h4 className="text-center">Related Ads</h4>

<div className="container">
  <div className="row">
    {related?.map((ad) => (
      <>
        <AdCard ad={ad} />
      </>
    ))}
  </div>
</div>

If you don’t see ad view changed when clicked on related ads, add the dependency to useEffect

// AdView  
useEffect(() => {
    fetchAd();
  }, [params]);