mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 14:43:24 +00:00
19 lines
378 B
TypeScript
19 lines
378 B
TypeScript
import { AnchorHTMLAttributes, CSSProperties, ReactNode } from 'react';
|
|
|
|
export default function ExternalLink({
|
|
children,
|
|
title,
|
|
...props
|
|
}: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
children: ReactNode;
|
|
style?: CSSProperties;
|
|
title?: string;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<a target="_blank" rel="noreferrer" title={title} {...props}>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|