summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/components/AccountTokenLabel.tsx
blob: b2623a5ad258f0940b89f69d761c23a31ec7ed9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}
    />
  );
}