|
|
@ -1,6 +1,8 @@
|
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
import { PropsWithChildren } from 'react';
|
|
|
|
import clsx from 'clsx';
|
|
|
|
import clsx from 'clsx';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { Icon } from '@@/Icon';
|
|
|
|
|
|
|
|
|
|
|
|
import { Button } from '../Button';
|
|
|
|
import { Button } from '../Button';
|
|
|
|
|
|
|
|
|
|
|
|
import styles from './CopyButton.module.css';
|
|
|
|
import styles from './CopyButton.module.css';
|
|
|
@ -31,7 +33,7 @@ export function CopyButton({
|
|
|
|
title="Copy Value"
|
|
|
|
title="Copy Value"
|
|
|
|
type="button"
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<i className="fa fa-copy space-right" aria-hidden="true" /> {children}
|
|
|
|
<Icon icon="copy" feather /> {children}
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
<span
|
|
|
|
<span
|
|
|
@ -41,7 +43,7 @@ export function CopyButton({
|
|
|
|
'space-left'
|
|
|
|
'space-left'
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<i className="fa fa-check" aria-hidden="true" />
|
|
|
|
<Icon icon="check" feather />
|
|
|
|
{displayText && <span className="space-left">{displayText}</span>}
|
|
|
|
{displayText && <span className="space-left">{displayText}</span>}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|