'use client';

import { usePathname } from "next/navigation";
import Footer from "./Footer";

const HIDE_FOOTER_PREFIXES = ["/pages", "/login"];

export default function FooterVisibility() {
  const pathname = usePathname();
  const shouldHide = HIDE_FOOTER_PREFIXES.some(
    (prefix) => pathname === prefix || pathname.startsWith(prefix + "/")
  );
  if (shouldHide) return null;
  return <Footer />;
}


