export function PageHeader({
  title,
  description,
  action
}: {
  title: string;
  description?: string;
  action?: React.ReactNode;
}) {
  return (
    <div className="mb-5 flex min-w-0 flex-col justify-between gap-3 sm:mb-6 sm:flex-row sm:items-end sm:gap-4">
      <div className="min-w-0">
        <h1 className="break-words text-xl font-black leading-8 sm:text-2xl sm:leading-relaxed">{title}</h1>
        {description ? (
          <p className="mt-1 break-words text-sm leading-7 text-[var(--ink-soft)]">{description}</p>
        ) : null}
      </div>
      {action ? <div className="w-full shrink-0 sm:w-auto">{action}</div> : null}
    </div>
  );
}
