"use client";

import { usePathname } from "next/navigation";
import type { ReactNode } from "react";

export function ConditionalFooter({
  children,
}: {
  children: ReactNode;
}) {
  const pathname = usePathname();

  if (
    pathname === "/download-preview" ||
    pathname === "/download" ||
    pathname === "/download/"
  ) {
    return null;
  }

  return <>{children}</>;
}
