import { Bell, Menu, Search, User } from "lucide-react"; import React from "react"; interface HeaderProps { onMenuClick: () => void; pageTitle?: string; } const Header: React.FC = ({ onMenuClick, pageTitle }) => { const [hasError, setHasError] = React.useState(false); return (
{/* 1. Left: Menu button (only on mobile) */}
{/* 2. Center: Title (only on mobile) */}
{pageTitle}
{/* 3. Desktop: Search */}
{/* 4. RIGHT SIDE: Notifications and Profile */}

Community Admin

Super Administrator

{hasError ? (
) : ( Profile setHasError(true)} /> )}
); }; export default Header;