import Image from 'next/image'

interface PerformancePrintHeaderProps {
  title: string
  description?: string
  period: string
}

/**
 * Header rendered only in the printed version of the user performance report.
 * It is hidden on screen so the dashboard keeps its regular header.
 */
export default function PerformancePrintHeader({
  title,
  description = 'All Users',
  period,
}: PerformancePrintHeaderProps) {
  return (
    <div className="mb-6 hidden items-center justify-between gap-6 border-b border-slate-300 pb-4 print:flex">
      <Image
        src="/images/logo/balirsv-hs-blue.png"
        alt="BALI RSV Logo"
        width={180}
        height={45}
        className="h-auto w-44"
      />

      <div className="text-right">
        <h1 className="text-2xl font-bold text-slate-900">{title}</h1>
        <p className="mt-1 text-sm font-medium text-slate-600">{description}</p>
        <p className="mt-1 text-sm font-medium text-slate-600">
          Period: {period}
        </p>
      </div>
    </div>
  )
}
