diff --git a/src/app/layout.tsx b/src/app/layout.tsx index a3baed0..d537868 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,4 +1,3 @@ -import Script from "next/script"; import "@/app/globals.css"; export { metadata, viewport } from "@/components/layout/site-document"; @@ -8,8 +7,6 @@ export default function RootLayout({ children }: Readonly<{ children: React.Reac
{children} - - ); diff --git a/src/components/layout/site-footer.tsx b/src/components/layout/site-footer.tsx index 5feae58..dd17f68 100644 --- a/src/components/layout/site-footer.tsx +++ b/src/components/layout/site-footer.tsx @@ -3,7 +3,7 @@ import { useRouteLocale } from "@/components/layout/locale-context"; import Image from "next/image"; -import { useEffect, useState } from "react"; +import { useEffect, useState, useSyncExternalStore } from "react"; import { applyLocale, getInitialLocale, withLocale, getLocaleMessages, type Locale } from "@/lib/i18n"; import { ThemeToggle } from "@/components/layout/theme-toggle"; @@ -19,9 +19,13 @@ function isIcpVisibleHost(hostname: string) { return hostname === "localhost" || hostname === "127.0.0.1" || hostname === "[::1]" || hostname.endsWith(".kivotos.cc"); } +const subscribeToHost = () => () => {}; +const getIcpVisibility = () => typeof window !== "undefined" && isIcpVisibleHost(window.location.hostname); +const getServerIcpVisibility = () => false; + export function SiteFooter() { const [locale, setLocale] = useState