This commit is contained in:
skidoodle 2022-10-26 23:21:17 +02:00
parent d5d68a2cb3
commit a6a33bc434
4 changed files with 107 additions and 99 deletions

View file

@ -22,22 +22,21 @@ const notify = () => {
export const Icon = ({ children, reference, copyValue }: Icon) => {
if (copyValue) {
return (
<a
<Link
href={''}
className={`cursor-pointer`}
onClick={() => {
notify(), copy(reference);
}}
>
{children}
</a>
</Link>
);
}
return (
<Link href={reference}>
<a target='_blank' className={`cursor-pointer`}>
{children}
</a>
<Link href={reference} target='_blank' className={'cursor-pointer'}>
{children}
</Link>
);
};