This commit is contained in:
砂糖
2026-01-24 16:54:44 +08:00
commit 70f337bb92
186 changed files with 23792 additions and 0 deletions

24
app/GoogleAdsense.tsx Normal file
View File

@@ -0,0 +1,24 @@
"use client";
import Script from "next/script";
const GoogleAdsense = () => {
return (
<>
{process.env.NEXT_PUBLIC_GOOGLE_ADSENSE_ID ? (
<>
<Script
async
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-${process.env.NEXT_PUBLIC_GOOGLE_ADSENSE_ID}`}
crossOrigin="anonymous"
strategy="afterInteractive"
/>
</>
) : (
<></>
)}
</>
);
};
export default GoogleAdsense;