import React from 'react' import { withRouter } from 'next/router' import { useCopyTextHandler, useAsyncCallback } from 'actionsack' import morph from 'morphmorph' import { COLORS } from '../lib/constants' import Button from './Button' import Popout, { managePopout } from './Popout' import CopySVG from './svg/Copy' const toIFrame = url => ` ` const toURL = url => `${location.origin}${url}` const toEncodedURL = morph.compose(encodeURI, toURL) function CopyButton(props) { return ( ) } export default managePopout(React.memo(CopyMenu))