new-personal-site/layouts/main/(partials)/SocialLink.tsx
2024-12-09 16:36:17 +01:00

19 lines
374 B
TypeScript

import { SocialLinksType } from "../(data)/links";
type Props = {
link: SocialLinksType;
};
export default function SocialLink({ link }: Props) {
return (
<a
href={link.href}
title={link.name}
className="text-white hover:text-gray-300"
target="_blank"
>
{link.icon}
</a>
);
}