Creative_Breakthrough / frontend /components /layout /ConditionalHeader.tsx
sushilideaclan01's picture
Initial commit of the Ad Generator Lite project, including backend services, frontend components, and configuration files. Added core functionalities for ad generation, user management, and image processing, along with a structured matrix system for ad testing.
f201243
Raw
History Blame Contribute Delete
323 Bytes
"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 />;
};