2026-10-24 21:19:22 +02:00
|
|
|
import Icon from './Icon';
|
|
|
|
|
import { socials } from '../data/profile';
|
2025-12-01 22:57:12 +01:00
|
|
|
|
2026-10-24 21:19:22 +02:00
|
|
|
export default function SocialLinks({ variant = 'icons' }) {
|
2025-12-01 22:57:12 +01:00
|
|
|
return (
|
2026-10-24 21:19:22 +02:00
|
|
|
<div className={`social-links social-links-${variant}`}>
|
|
|
|
|
{socials.map((social) => (
|
2025-12-01 22:57:12 +01:00
|
|
|
<a
|
|
|
|
|
key={social.name}
|
|
|
|
|
href={social.url}
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="noopener noreferrer"
|
2026-10-24 21:19:22 +02:00
|
|
|
className={variant === 'icons' ? 'icon-button' : 'social-link'}
|
|
|
|
|
aria-label={social.name}
|
2025-12-01 22:57:12 +01:00
|
|
|
>
|
2026-10-24 21:19:22 +02:00
|
|
|
<Icon name={social.icon} size={variant === 'icons' ? 16 : 18} />
|
|
|
|
|
{variant !== 'icons' && <span>{social.name}</span>}
|
2025-12-01 22:57:12 +01:00
|
|
|
</a>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|