import type { Dictionary } from "@/i18n/get-dictionary";
import { SectionHeading } from "@/components/shared/section-heading";
import { Section } from "@/components/shared/section";
import { ProcessTimeline } from "./process-timeline";
import { ProcessTimelineVertical } from "./process-timeline-vertical";

/** "How we work": horizontal timeline on desktop, vertical on mobile/tablet. */
export function ProcessSection({ t }: { t: Dictionary["home"]["process"] }) {
  return (
    <Section labelledBy="process-title" className="py-0">
      <SectionHeading id="process-title" label={t.label} title={t.title} />
      <ProcessTimeline steps={t.steps} className="mt-10 hidden h-[231px] content-center lg:grid" />
      <ProcessTimelineVertical steps={t.steps} className="mt-5 md:mt-10 lg:hidden" />
    </Section>
  );
}
