mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
🔥
This commit is contained in:
parent
f5bd3b6857
commit
29312048df
8 changed files with 37 additions and 40 deletions
|
@ -1,4 +1,3 @@
|
|||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||
import toast, { Toaster } from 'react-hot-toast';
|
||||
import copy from 'copy-to-clipboard'
|
||||
|
||||
|
@ -8,11 +7,11 @@ const Icon = ({icon, reference, copy = false} : {icon: any, reference: any, copy
|
|||
{
|
||||
copy ? (
|
||||
<a onClick={() => doThings(reference)}>
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
{icon}
|
||||
</a>
|
||||
) : (
|
||||
<a href={reference} target='_blank' rel='noopener noreferrer' aria-label="Icon">
|
||||
<FontAwesomeIcon icon={icon} />
|
||||
{icon}
|
||||
</a>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue