mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 15:05:35 +00:00
27 lines
484 B
TypeScript
27 lines
484 B
TypeScript
import { Anchor } from '@mantine/core';
|
|
import { AnchorHTMLAttributes, CSSProperties, ReactNode } from 'react';
|
|
|
|
export function ExternalLinkStyled({
|
|
children,
|
|
title,
|
|
...props
|
|
}: AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
children: ReactNode;
|
|
style?: CSSProperties;
|
|
title?: string;
|
|
className?: string;
|
|
}) {
|
|
return (
|
|
<Anchor<'a'>
|
|
component="a"
|
|
underline="never"
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
title={title}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</Anchor>
|
|
);
|
|
}
|