import { Fragment } from 'react' import { CodeIcon } from '@heroicons/react/outline' import { Menu, Transition } from '@headlessui/react' import { Contract } from '../../common/contract' import { contractPath } from '../lib/firebase/contracts' import { DOMAIN } from '../../common/envs/constants' import { copyToClipboard } from '../lib/util/copy' function copyEmbedCode(contract: Contract) { const title = contract.question const src = `https://${DOMAIN}/embed${contractPath(contract)}` const embedCode = `` copyToClipboard(embedCode) } export function ShareEmbedButton(props: { contract: Contract }) { const { contract } = props return (
) }