import type { ReactNode } from "react";

export function PageHeader({ title, subtitle, action }: {
  title: string;
  subtitle?: string;
  action?: ReactNode;
}) {
  return (
    <div className="mb-6 flex items-start justify-between gap-4">
      <div>
        <h1 className="text-2xl font-bold text-[#1a1a1a]">{title}</h1>
        {subtitle && <p className="mt-1 text-sm text-[#71717a]">{subtitle}</p>}
      </div>
      {action}
    </div>
  );
}
