mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
21 lines
465 B
TypeScript
21 lines
465 B
TypeScript
import { Link, Icon } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import arrowIcon from 'icons/arrows/north-east.svg';
|
|
|
|
interface Props {
|
|
href: string;
|
|
title: string;
|
|
}
|
|
|
|
const ExternalLink = ({ href, title }: Props) => {
|
|
return (
|
|
<Link fontSize="sm" display="inline-flex" alignItems="center" target="_blank" href={ href }>
|
|
{ title }
|
|
<Icon as={ arrowIcon } boxSize={ 4 }/>
|
|
</Link>
|
|
);
|
|
};
|
|
|
|
export default React.memo(ExternalLink);
|