Newer
Older
// Copyright 2015-2018 Parity Technologies (UK) Ltd.
// This file is part of Parity.
//
import React from 'react';
import PropTypes from 'prop-types';
import { Address } from './Address';
import { Avatar } from './Avatar';
import { Information } from './Information';
import { Name } from './Name';
export const AccountCard = ({
address,
name,
type,
shortAddress,
...otherProps
}) => (
<Avatar address={address} type={type} />
<Information>
<Name name={name} />
<Address address={address} short={shortAddress} />
</Information>
AccountCard.Address = Address;
AccountCard.Avatar = Avatar;
AccountCard.Information = Information;
AccountCard.Name = Name;
AccountCard.propTypes = {
address: PropTypes.string,
name: PropTypes.string,
shortAddress: PropTypes.bool