import RichText from '@graphcommerce/graphcms-ui/RichText' import { iconChat, iconEmail, iconPhone, IconBlocks, IconBlock, SvgImage, } from '@graphcommerce/next-ui' import PageLink from 'next/link' import React from 'react' import { RowServiceOptionsFragment } from './RowServiceOptions.gql' type RowServiceOptionsProps = RowServiceOptionsFragment export default function RowServiceOptions(props: RowServiceOptionsProps) { const { title, serviceOptions } = props return ( {serviceOptions.map((serviceOption) => { const iconTitle = serviceOption.title.toLowerCase() return ( {iconTitle === 'e-mail' && ( )} {iconTitle === 'phone' && ( )} {iconTitle === 'chat' && } } > {serviceOption.description ? : undefined} ) })} ) }