import type { ReactNode } from "react";

interface PageHeaderProps {
  title: string;
  subtitle?: string;
  actions?: ReactNode;
}

export function PageHeader({ title, subtitle, actions }: PageHeaderProps) {
  return (
    <div className="flex h-[60px] shrink-0 flex-wrap items-center justify-between gap-2 border-b border-border bg-white px-4 py-2 sm:px-[26px] sm:py-0">
      <div>
        <h1 className="text-[17px] font-bold">{title}</h1>
        {subtitle && (
          <p className="text-[11px] text-muted">{subtitle}</p>
        )}
      </div>
      {actions && <div className="flex items-center gap-3.5">{actions}</div>}
    </div>
  );
}
