diff --git a/src/app/layout.jsx b/src/app/layout.jsx index 5de4fbab..0d4831b8 100644 --- a/src/app/layout.jsx +++ b/src/app/layout.jsx @@ -161,6 +161,9 @@ export default function RootLayout({ children }) { { label: 'Privacy', href: '/privacy' }, { label: 'Terms', href: '/terms' }, { label: 'GitHub', href: 'https://github.com/profullstack/qryptchat-web' }, + ...(process.env.NEXT_PUBLIC_ONION_URL && !new URL(SITE_URL).hostname.endsWith('.onion') + ? [{ label: 'Also on Tor', href: process.env.NEXT_PUBLIC_ONION_URL }] + : []), ]} /> } diff --git a/src/lib/components/Footer.jsx b/src/lib/components/Footer.jsx index cdfb6be0..0a60f47d 100644 --- a/src/lib/components/Footer.jsx +++ b/src/lib/components/Footer.jsx @@ -1,26 +1,6 @@ 'use client'; -// One footer row: links, copyright and the Profullstack ring come from -// @profullstack/footer, server-rendered in app/layout.jsx and passed in as -// `bottom`. The Tor mirror link sits just above it when configured. +// The shared Profullstack footer is passed in by app/layout.jsx. export default function Footer({ bottom }) { - const onionUrl = process.env.NEXT_PUBLIC_ONION_URL; - const isOnionSite = typeof window !== 'undefined' && window.location.hostname.endsWith('.onion'); - - return ( - - ); + return bottom; }