'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import CustomLink from './CustomLink'; const links = [{ name: 'Subscribe', path: '/' }]; export default function Footer() { const pathname = usePathname(); return (
{pathname === '/' ? (

By subscribing, you agree to our{' '} Privacy Policy .

) : (
{links.map( link => pathname !== link.path && !(pathname === '/confirmation' && link.path === '/') && ( ) )} {pathname === '/privacy' && ( )}
)}
); }