'use client'; import "./Header.css"; import Link from "next/link"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faSearch } from "@fortawesome/free-solid-svg-icons"; import Image from "next/image"; import { useEffect } from "react"; import { usePathname } from "next/navigation"; import Sidebar from "@/components/Sidebar"; const Header = () => { const pathname = usePathname(); const isPlayerPage = pathname.startsWith("/player/movie") || pathname.startsWith("/player/tvshow"); useEffect(() => { const appContainer = document.querySelector('.app-container'); if (appContainer) { if (isPlayerPage) { appContainer.classList.add('no-padding'); } else { appContainer.classList.remove('no-padding'); } } }, [isPlayerPage]); return ( <> {!isPlayerPage && (

Nexora

Nexora Logo
)} ); }; export default Header;