"use client"; import { Geist, Geist_Mono } from "next/font/google"; import { AuthProvider } from "@/context/AuthContext"; import { useEffect, useState } from "react"; import "./globals.css"; const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], }); const geistMono = Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], }); export default function RootLayout({ children }) { const [isLocalhost, setIsLocalhost] = useState(false); useEffect(() => { setIsLocalhost(window.location.hostname === "localhost"); }, []); return ( {isLocalhost &&
} {children} ); }