"use client";

import React from "react";
import { usePathname } from "next/navigation";
import { Header } from "./Header";

export const ConditionalHeader: React.FC = () => {
  const pathname = usePathname();
  const isLoginPage = pathname === "/login";

  if (isLoginPage) {
    return null;
  }

  return <Header />;
};
