mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
next13
This commit is contained in:
parent
d5d68a2cb3
commit
a6a33bc434
4 changed files with 107 additions and 99 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue