diff --git a/components/DownloadBtn.tsx b/components/DownloadBtn.tsx index b34c208..3583506 100644 --- a/components/DownloadBtn.tsx +++ b/components/DownloadBtn.tsx @@ -2,11 +2,13 @@ import { FunctionComponent } from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import toast, { Toaster } from 'react-hot-toast' import { useRouter } from 'next/router' +import { useClipboard } from 'use-clipboard-copy' import { getBaseUrl } from '../utils/tools' const DownloadBtn: FunctionComponent<{ downloadUrl: string }> = ({ downloadUrl }) => { const { asPath } = useRouter() + const clipboard = useClipboard() return (
@@ -23,7 +25,7 @@ const DownloadBtn: FunctionComponent<{ downloadUrl: string }> = ({ downloadUrl }