-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.tsx
More file actions
27 lines (22 loc) · 786 Bytes
/
index.tsx
File metadata and controls
27 lines (22 loc) · 786 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
import Skeleton from '@node-core/ui-components/Common/Skeleton';
import type { ComponentProps, FC } from 'react';
import { cloneElement } from 'react';
import Button from '#site/components/Common/Button';
import type { Partners } from '#site/types';
import style from './index.module.css';
type PartnersLogoProps = Partners & ComponentProps<typeof Skeleton>;
const PartnersLogo: FC<PartnersLogoProps> = ({ href, logo, loading }) => (
<Skeleton loading={loading} className="h-28 w-full p-2">
<Button
kind="secondary"
href={`${href}/?utm_source=nodejs-website&utm_medium=Link`}
className={style.partnerIcon}
>
{cloneElement(logo, {
width: 'auto',
height: '16px',
})}
</Button>
</Skeleton>
);
export default PartnersLogo;