mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 19:43:02 +00:00
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import type { AnchorHTMLAttributes } from 'react';
|
|
import { ExternalLinkIcon } from '@chakra-ui/icons';
|
|
import { Link } from '@chakra-ui/react';
|
|
|
|
export function ExtLink({ children, ...props }: AnchorHTMLAttributes<HTMLAnchorElement>) {
|
|
return (
|
|
<Link isExternal {...props} rel="noreferrer noopener nofollow">
|
|
{children}
|
|
<ExternalLinkIcon />
|
|
</Link>
|
|
);
|
|
}
|