2021-04-18 01:56:23 +02:00
|
|
|
interface SocialMediaItemProps {
|
|
|
|
link: string
|
2021-05-08 19:52:04 +02:00
|
|
|
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) => {
|
2021-05-08 19:52:04 +02:00
|
|
|
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'>
|
2021-05-08 19:52:04 +02:00
|
|
|
<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
|
|
|
)
|
|
|
|
}
|