forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.tsx
More file actions
26 lines (21 loc) · 719 Bytes
/
index.tsx
File metadata and controls
26 lines (21 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Avatar from '@node-core/ui-components/Common/AvatarGroup/Avatar';
import { getAcronymFromString } from '#site/util/string';
import type { Supporter } from '#site/types';
import type { FC } from 'react';
type SupportersListProps = {
supporters: Array<Supporter<'opencollective'>>;
};
const SupportersList: FC<SupportersListProps> = ({ supporters }) => (
<div className="flex max-w-full flex-wrap items-center justify-center gap-1">
{supporters.map(({ name, image, profile }, i) => (
<Avatar
nickname={name}
fallback={getAcronymFromString(name)}
image={image}
key={`${name}-${i}`}
url={profile}
/>
))}
</div>
);
export default SupportersList;