import styles from "./list.module.scss"
import { ContactPerson } from '@/components/ContactPerson/ContactPerson'

type ContactPersonListProps = {
  persons: {
    title: string,
    description: string,
  }[]
}

export const ContactPersonList = ({ persons }: ContactPersonListProps) => {
  return (
    <div className={styles.list}>
      {persons.map(person => <ContactPerson key={person.title} title={person.title} description={person.description} />)}
    </div>
  )
}