import type { ReactNode } from "react";

type OverviewSectionProps = {
  number?: string;
  title: string;
  children: ReactNode;
};

export function OverviewSection({ number, title, children }: OverviewSectionProps) {
  return (
    <section className="pco-section">
      <h3>
        {number ? <span className="pco-num">{number}</span> : null}
        {title}
      </h3>
      {children}
    </section>
  );
}
