1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-09-19 22:15:53 +02:00
.profile/components/Profile/SocialMediaList/SocialMediaItem.tsx

23 lines
513 B
TypeScript
Raw Normal View History

interface SocialMediaItemProps extends React.PropsWithChildren {
2021-04-18 01:56:23 +02:00
link: string
ariaLabel: string
2021-04-18 01:56:23 +02:00
}
export const SocialMediaItem = (props: SocialMediaItemProps): JSX.Element => {
const { link, ariaLabel, children } = props
2021-04-18 01:56:23 +02:00
return (
<li className="mx-4 my-1 inline-block">
<a
href={link}
aria-label={ariaLabel}
target="_blank"
rel="noopener noreferrer"
className="relative inline-block bg-transparent"
>
{children}
</a>
</li>
2021-04-18 01:56:23 +02:00
)
}