-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.tsx
More file actions
40 lines (33 loc) · 907 Bytes
/
index.tsx
File metadata and controls
40 lines (33 loc) · 907 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'use client';
import type { FC } from 'react';
import usePartnersList from '#site/hooks/react-client/usePartnersList';
import { ICON_PARTNERS } from '#site/next.partners.constants';
import type { PartnerCategory } from '#site/types';
import PartnerIcon from '../PartnerIcon';
import style from './index.module.css';
type PartnersIconListProps = {
maxLength?: number;
categories?: PartnerCategory;
};
const PartnersIconList: FC<PartnersIconListProps> = ({
maxLength = 6,
categories,
}) => {
const { seedList, initialRenderer } = usePartnersList({
logos: ICON_PARTNERS,
maxLength,
categories,
});
return (
<div className={style.partnersIconList}>
{seedList.map((partner, index) => (
<PartnerIcon
{...partner}
key={index}
loading={initialRenderer.current}
/>
))}
</div>
);
};
export default PartnersIconList;