import type { ReactNode } from 'react';

type SectionHeaderProps = {
  badge: ReactNode;
  title: string;
  description?: string;
};

export function SectionHeader({ badge, title, description }: SectionHeaderProps) {
  return (
    <div className="studio-step-title">
      <span className="studio-step-badge">{badge}</span>
      <div>
        <h2 className="font-display text-xl font-semibold text-slate-900 sm:text-2xl">{title}</h2>
        {description ? <p className="mt-1 text-sm text-slate-600">{description}</p> : null}
      </div>
    </div>
  );
}
