contacts.js 721 B

123456789101112131415161718
  1. import { View } from 'app/design/view';
  2. import Link from 'app/ui/atoms/link';
  3. import Profile from 'app/ui/molecules/profile/profile';
  4. import { BlockWrapper } from 'app/components/block-wrapper'
  5. export default function ElementContacts({ data, blockWrapperProps }) {
  6. return <BlockWrapper {...blockWrapperProps}>
  7. <View className="px-4 overflow-y-scroll overflow-hidden">
  8. <View className="space-y-2">
  9. {data?.length && data.map((item) => (
  10. <Link key={item.id} href={item.url}>
  11. <Profile {...item} displayType="unit" displaySize="sm" />
  12. </Link>
  13. ))}
  14. </View>
  15. </View>
  16. </BlockWrapper>
  17. }