--- import { Icon } from "astro-iconset/components"; import { sanitizeHref } from "emdash"; import type { BlockComponentProps } from "emdash/ui"; import type { PageContentBlock } from "../../../emdash-env"; import { toParagraphs } from "../../utils/text"; type ContactBlock = Extract; type Props = BlockComponentProps; const { value } = Astro.props; const { anchor_id, eyebrow, headline, subheadline, options } = value; const OptionHeading = headline ? "h3" : "h2"; const iconMap: Record = { email: "ph:envelope", support: "ph:lifebuoy", sales: "ph:currency-dollar", phone: "ph:phone", chat: "ph:chat-circle", location: "ph:map-pin", }; ---
{ (eyebrow || headline || subheadline) && (
{eyebrow &&

{eyebrow}

} {headline &&

{headline}

} {subheadline &&

{subheadline}

}
) }
    { options.map((option) => (
  • {option.title} {toParagraphs(option.description).map((paragraph) => (

    {paragraph}

    ))}
  • )) }