"use client";

import Container from "@/components/Container/Container";
import Section from "@/components/Section/Section";
import ContactCta from "@/components/ContactCta/ContactCta";

const CtaBlock = (props: { [rest: string]: unknown }) => (
  <Container id={props.anchor as string | undefined}>
    <Section gridArea="thin" className="flex justify-start">
      <ContactCta
        label={
          (props.cta_label ??
            props.ctaLabel ??
            props.label ??
            "Contact us") as string
        }
      />
    </Section>
  </Container>
);

export default CtaBlock;
