diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx index 9ad7129..248629b 100644 --- a/src/components/Icon.tsx +++ b/src/components/Icon.tsx @@ -1,6 +1,7 @@ import Link from 'next/link'; import toast from 'react-hot-toast'; import copy from 'copy-to-clipboard'; +import { socials } from '@/components/data/Socials'; type Icon = { children: any; @@ -25,6 +26,9 @@ export const Icon = ({ children, reference, copyValue }: Icon) => { social.ref === reference)?.ariaLabel + } onClick={() => { notify(), copy(reference); }} @@ -35,7 +39,12 @@ export const Icon = ({ children, reference, copyValue }: Icon) => { } return ( - + social.ref === reference)?.ariaLabel} + > {children} );