import React, { useEffect } from "react" const AdsenseMain = ({ path }) => { useEffect(() => { if (window) { window.adsbygoogle = window.adsbygoogle || [] window.adsbygoogle.push({}) } }, [path]) return ( ) } export default AdsenseMain