summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/AccountTokenLabel.tsx
blob: 704f41af10de72db9275e2734527cd843740a935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { formatAccountToken } from '../lib/account';
import ClipboardLabel from './ClipboardLabel';

interface IAccountTokenLabelProps {
  accountToken: string;
  obscureValue?: boolean;
  className?: string;
}

export default function AccountTokenLabel(props: IAccountTokenLabelProps) {
  return (
    <ClipboardLabel
      value={props.accountToken}
      displayValue={formatAccountToken(props.accountToken)}
      obscureValue={props.obscureValue}
      className={props.className}
    />
  );
}