import { Logo } from "./Logo";
import { SideMenu } from "./SideMenu";
import { AdminButton } from "./AdminButton";
import { UserDropdown } from "./UserDropdown";

interface MainHeaderProps {
  user: any;
  onSidebarToggle: () => void;
  onProfileClick: () => void;
  onLogout: () => void;
}

/**
 * 메인 헤더 컴포넌트
 */
export function MainHeader({ user, onSidebarToggle, onProfileClick, onLogout }: MainHeaderProps) {
  return (
    <header className="bg-background/95 sticky top-0 z-50 h-14 min-h-14 w-full flex-shrink-0 border-b backdrop-blur">
      <div className="flex h-full w-full items-center justify-between px-6">
        {/* Left side - Side Menu + Logo */}
        <div className="flex h-8 items-center gap-2">
          {/* 햄버거 메뉴 버튼 - 모바일에서만 표시 */}
          <div className="md:hidden">
            <SideMenu onSidebarToggle={onSidebarToggle} />
          </div>
          <Logo />
        </div>

        {/* Right side - Admin Button + User Menu */}
        <div className="flex h-8 items-center gap-2">
          <AdminButton user={user} />
          <UserDropdown user={user} onProfileClick={onProfileClick} onLogout={onLogout} />
        </div>
      </div>
    </header>
  );
}
