import { Fragment } from 'react' import { LinkIcon } from '@heroicons/react/outline' import { Menu, Transition } from '@headlessui/react' import { Contract } from '../../common/contract' import { copyToClipboard } from '../lib/util/copy' function copyCurrentUrl(contract: Contract) { const url = window.location.href copyToClipboard(url) } export function CopyLinkButton(props: { contract: Contract }) { const { contract } = props return ( copyCurrentUrl(contract)} >
Link copied!
) }