'use client'

import { SidebarTrigger, useSidebar } from '@admin/components/ui/sidebar'

export function AdminHeader() {
  const { state } = useSidebar()

  return (
    <header className="sticky top-0 z-50 flex h-14 w-full shrink-0 items-center gap-2 border-b border-border">
      <div className="flex w-full flex-1 items-center gap-2 px-5">
        {state === 'collapsed' && <SidebarTrigger />}
      </div>
    </header>
  )
}
