diff --git a/app/components/artifact.tsx b/app/components/artifact.tsx index 24e62dfb1..b88802764 100644 --- a/app/components/artifact.tsx +++ b/app/components/artifact.tsx @@ -7,6 +7,7 @@ import ExportIcon from "../icons/share.svg"; import CopyIcon from "../icons/copy.svg"; import DownloadIcon from "../icons/download.svg"; import GithubIcon from "../icons/github.svg"; +import LoadingButtonIcon from "../icons/loading.svg"; import Locale from "../locales"; import { Modal, showToast } from "./ui-lib"; import { copyToClipboard, downloadAs } from "../utils"; @@ -83,6 +84,7 @@ export function ArtifactShareButton({ style?: any; fileName?: string; }) { + const [loading, setLoading] = useState(false); const [name, setName] = useState(id); const [show, setShow] = useState(false); const shareUrl = useMemo( @@ -110,16 +112,19 @@ export function ArtifactShareButton({ <>