import React, { useState } from 'react' import { LinkIcon } from '@heroicons/react/outline' import clsx from 'clsx' import { copyToClipboard } from 'web/lib/util/copy' import { ToastClipboard } from 'web/components/toast-clipboard' import { track } from 'web/lib/service/analytics' import { contractDetailsButtonClassName } from 'web/components/contract/contract-info-dialog' export function ShareIconButton(props: { buttonClassName?: string onCopyButtonClassName?: string toastClassName?: string children?: React.ReactNode iconClassName?: string copyPayload: string }) { const { buttonClassName, onCopyButtonClassName, toastClassName, children, iconClassName, copyPayload, } = props const [showToast, setShowToast] = useState(false) return (
{showToast && }
) }