Files

27 lines
711 B
TypeScript

import React from 'react';
import { IconButton } from '@luxfi/ui/icon-button';
import { Link } from 'toolkit/next/link';
import { Tooltip } from '@luxfi/ui/tooltip';
import IconSvg from '../IconSvg';
interface Props {
className?: string;
label?: string;
href: string;
}
const LinkNewTab = ({ className, label, href }: Props) => {
return (
<Tooltip content={ label }>
<Link href={ href } external noIcon className={ `size-5 rounded-none inline-flex items-center justify-center text-[var(--color-icon-secondary)] hover:text-[var(--color-hover)] ${ className ?? '' }`.trim() }>
<IconSvg name="open-link"/>
</Link>
</Tooltip>
);
};
export default React.memo(LinkNewTab);