import React from 'react'; import cn from 'classnames'; import { ReactComponent as Copy } from 'assets/copy.svg'; import useCopiable from 'lib/useCopiable'; import WithTooltip from 'components/WithTooltip'; export default function CopiableWithTooltip({ as: As = 'span', text, children, className, ...rest }) { const [doCopy, didCopy] = useCopiable(text || children); return ( {children} ); }