on c3ecf75 help sign in
bridge/src/components/CopyButtonWide.tsx
17 lines 422 B history raw
1import React from 'react';
2import { CopyButton as BaseCopyButton } from 'components/Buttons';
3import useCopiable from 'lib/useCopiable';
5export function CopyButtonWide({ text, children, ...rest }) {
6 const [doCopy, didCopy] = useCopiable(text);
7 return (
8 <BaseCopyButton
9 as="span"
10 onClick={doCopy}
11 didCopy={didCopy}
12 text={text}
13 {...rest}>
14 {children}
15 </BaseCopyButton>
16 );