feat : remove admin bypass ads

This commit is contained in:
2026-09-27 15:11:37 +07:00 Unverified
parent 33ee40a0a8
commit d9dcf1a3f8
2 changed files with 4 additions and 16 deletions
+1 -13
View File
@@ -1,21 +1,9 @@
"use client";
import Script from "next/script";
import { authClient } from "@/lib/auth/client";
const clientId = process.env.NEXT_PUBLIC_GOOGLE_ADSENSE_CLIENT_ID?.trim();
export function GoogleAdsense() {
const { data: session, error, isPending } = authClient.useSession();
if (
process.env.NODE_ENV !== "production" ||
!clientId ||
isPending ||
error ||
session
) {
if (process.env.NODE_ENV !== "production" || !clientId) {
return null;
}