mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
27 lines
711 B
TypeScript
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);
|