mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-12-08 00:44:30 +01:00
25 lines
507 B
TypeScript
25 lines
507 B
TypeScript
interface SocialMediaItemProps {
|
|
link: string
|
|
ariaLabel: string
|
|
}
|
|
|
|
export const SocialMediaItem: React.FC<
|
|
React.PropsWithChildren<SocialMediaItemProps>
|
|
> = (props) => {
|
|
const { link, ariaLabel, children } = props
|
|
|
|
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>
|
|
)
|
|
}
|