blob: dc0d7ac232384c25e1fc3fe874a87267f881e59d (
plain) (
blame)
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
|
/*
* SPDX-FileCopyrightText: 2024 Kristóf Marussy
*
* SPDX-License-Identifier: MIT
*/
import Link from '@docusaurus/Link';
import styles from './Elsewhere.module.css';
export default function Elsewhere({
label,
links,
}: {
label: React.ReactNode;
links: {
href: string;
icon: React.ReactNode;
}[];
}) {
return (
<div className={styles.elsewhere}>
<p className={styles.elsewhere__text}>{label}</p>
<ul className={styles.elsewhere__list}>
{links.map(({ href, icon }) => (
<li className={styles.elsewhere__item} key={href}>
<Link href={href} className={styles.elsewhere__icon}>
{icon}
</Link>
</li>
))}
</ul>
</div>
);
}
|