mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-09-17 16:43:47 +08:00
21 lines
431 B
TypeScript
21 lines
431 B
TypeScript
import { ReactNode } from "react";
|
|
|
|
interface SocialLinkProps {
|
|
href: string;
|
|
children: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function SocialLink({ href, children, className = "" }: SocialLinkProps) {
|
|
return (
|
|
<a
|
|
href={href}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className={`text-foreground/60 hover:text-foreground transition-colors ${className}`}
|
|
>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|