-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.tsx
More file actions
26 lines (20 loc) · 751 Bytes
/
index.tsx
File metadata and controls
26 lines (20 loc) · 751 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
'use client';
import Avatar from '@node-core/ui-components/Common/AvatarGroup/Avatar';
import type { FC } from 'react';
import { use } from 'react';
import type { Supporters } from '#site/types';
type SupportersProps = {
supporters: Promise<Array<Supporters>>;
};
// TODO: Sort supporters by all time contribution amount and link to their Open Collective page
const SupportersList: FC<SupportersProps> = ({ supporters }) => {
const supportersList = use(supporters);
return (
<div className="flex max-w-full flex-wrap items-center justify-center gap-1">
{supportersList.map(({ name, image }, i) => (
<Avatar nickname={name} image={image} key={`${name}-${i}`} />
))}
</div>
);
};
export default SupportersList;