2023-08-01 17:22:09 +02:00
|
|
|
interface SocialMediaItemProps extends React.PropsWithChildren {
|
2021-04-18 01:56:23 +02:00
|
|
|
link: string
|
2021-05-08 19:52:04 +02:00
|
|
|
ariaLabel: string
|
2021-04-18 01:56:23 +02:00
|
|
|
}
|
|
|
|
|
2023-08-01 17:22:09 +02:00
|
|
|
export const SocialMediaItem = (props: SocialMediaItemProps): JSX.Element => {
|
2021-05-08 19:52:04 +02:00
|
|
|
const { link, ariaLabel, children } = props
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
return (
|
2023-10-23 23:11:59 +02:00
|
|
|
<li className="mx-4 my-1 inline-block">
|
2021-05-08 19:52:04 +02:00
|
|
|
<a
|
|
|
|
href={link}
|
|
|
|
aria-label={ariaLabel}
|
2023-10-23 23:11:59 +02:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2024-05-16 09:26:05 +02:00
|
|
|
className="relative inline-block bg-transparent transition-all duration-300 ease-in-out hover:scale-110"
|
2021-05-08 19:52:04 +02:00
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</a>
|
|
|
|
</li>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|