2021-05-01 16:16:55 -05:00
|
|
|
import CLink from "./contacts-link";
|
|
|
|
|
2021-06-11 03:10:41 -05:00
|
|
|
export default function ContactsBlock({ contacts }) {
|
2021-05-01 16:16:55 -05:00
|
|
|
return (
|
|
|
|
<div className="p-4 space-y-4">
|
2021-06-11 03:10:41 -05:00
|
|
|
{Object.keys(contacts).map((contact) => (
|
2021-05-01 16:16:55 -05:00
|
|
|
<CLink
|
|
|
|
key={contact}
|
2021-06-11 03:10:41 -05:00
|
|
|
src={contacts[contact].src}
|
|
|
|
alt={contacts[contact].alt}
|
|
|
|
url={contacts[contact].url}
|
2021-05-01 16:16:55 -05:00
|
|
|
description={contact}
|
2021-06-11 03:10:41 -05:00
|
|
|
url_text={contacts[contact].url_text}
|
2021-05-01 16:16:55 -05:00
|
|
|
/>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|