1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-12-08 00:44:30 +01:00
.profile/components/Profile/SocialMediaList/SocialMediaItem.tsx

25 lines
507 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
interface SocialMediaItemProps {
link: string
ariaLabel: string
2021-04-18 01:56:23 +02:00
}
2022-05-03 10:05:11 +02:00
export const SocialMediaItem: React.FC<
React.PropsWithChildren<SocialMediaItemProps>
> = (props) => {
const { link, ariaLabel, children } = props
2021-04-18 01:56:23 +02:00
return (
2021-12-04 15:52:51 +01:00
<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
)
}