@@ -3,6 +3,7 @@ import { Button } from 'indigo-react';
33import { Icon } from '@tlon/indigo-react';
44
55import { blinkIf } from './Blinky';
6+import WithTooltip from './WithTooltip';
67
78// NOTE: the -> is correct because inter recognizes the pair
89export const ForwardButton = ({ loading, ...props }) => (
@@ -25,9 +26,13 @@ export const OfflineButton = props => (
2526 </OutButton>
2627);
2728
28−export const CopyButton = props => (
29+export const CopyButton = ({ didCopy = false, ...props }) => (
2930 <Button
30− accessory={<Icon icon="Copy" size="18px" color={'black'} />}
31+ accessory={
32+ <WithTooltip content={didCopy ? 'Copied!' : 'Copy'}>
33+ <Icon icon="Copy" size="18px" color={'black'} />
34+ </WithTooltip>
35+ }
3136 {...props}
3237 />
3338);