-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy pathindex.tsx
More file actions
30 lines (25 loc) · 946 Bytes
/
index.tsx
File metadata and controls
30 lines (25 loc) · 946 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
import Skeleton from '@node-core/ui-components/Common/Skeleton';
import Tooltip from '@node-core/ui-components/Common/Tooltip';
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 PartnersIconProps = Partners & ComponentProps<typeof Skeleton>;
const PartnersIcon: FC<PartnersIconProps> = ({ name, href, logo, loading }) => (
<Skeleton loading={loading} className="size-9 p-2">
<Tooltip content={<span className="px-2">{name}</span>}>
<Button
kind="secondary"
href={`${href}/?utm_source=nodejs-website&utm_medium=Link`}
className={style.partnerIcon}
>
{cloneElement(logo, {
width: 'auto',
height: '16px',
})}
</Button>
</Tooltip>
</Skeleton>
);
export default PartnersIcon;