1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-02-14 21:10:41 +01:00
Matthias Kretschmann 7eb0075e6f
Migrate to Biome (#1322)
* migrate to Biome

* package updates

* ci fix

* typing fix
2024-07-26 11:45:20 +01:00

30 lines
687 B
TypeScript

import Button from '@/components/Button'
import Icon from '@/components/Icon'
import type { ProjectLink } from '@/types'
import styles from './index.module.css'
export default function ProjectLinks({
links
}: {
links: ProjectLink[]
}) {
return (
<div className={styles.projectLinks}>
<h2 className={styles.title}>
Links <span>Learn more on the interwebz.</span>
</h2>
<ul>
{links.map(({ title, url, icon }) => (
<li key={title}>
<Button href={url} data-testid="link">
<Icon name={icon ? icon : title} />
{title}
</Button>
</li>
))}
</ul>
</div>
)
}