diff --git a/src/components/elements/favorites-list.tsx b/src/components/elements/favorites-list.tsx index 34e0e0d..90e6a22 100644 --- a/src/components/elements/favorites-list.tsx +++ b/src/components/elements/favorites-list.tsx @@ -7,6 +7,7 @@ import {XMarkIcon} from "@heroicons/react/20/solid" import {H2} from "./headers" import {clsx} from "clsx" import {twMerge} from "tailwind-merge" +import {useState} from "react" const ShareButtons = () => { const [, copy] = useCopyToClipboard() @@ -19,6 +20,42 @@ const ShareButtons = () => { copy(text).catch(_e => console.warn("An error occurred when copying to clipboard")) } + function clipCopiedText() { + const [isActive, setIsActive] = useState(false) + + return ( + <> + + {/* className={"list-unstyled " + (isActive ? "" : "tw-hidden")} */} +