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

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

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