'use client' import React from 'react' import { Landmark, Scale, ShieldCheck } from 'lucide-react' import Link from 'next/link' import type { Page } from '../../payload-types' type Props = Extract[0], { blockType: 'affiliation' }> const iconMap = { shield: ShieldCheck, scale: Scale, landmark: Landmark, } export const AffiliationBlock: React.FC = ({ eyebrow, title, description, logo, linkText, trustPoints }) => { return (

{title}

{description}

{logo && typeof logo === 'object' && logo.url && (
{logo.alt
)} {linkText && ( {linkText} )}
{trustPoints && trustPoints.length > 0 && (
{trustPoints.map((point: any, index: number) => { const Icon = (point.icon && iconMap[point.icon as keyof typeof iconMap]) || ShieldCheck return (

{point.title}

{point.description}

) })}
)}
) }