// Copyright 2015-2018 Parity Technologies (UK) Ltd. // This file is part of Parity. // // SPDX-License-Identifier: BSD-3-Clause import React from 'react'; import PropTypes from 'prop-types'; import AddressShort from '../../AddressShort'; import Placeholder from '../../Placeholder'; const Address = ({ address, short, ...otherProps }) => (
{address ? ( short ? ( ) : ( address ) ) : ( )}
); Address.defaultProps = { short: false }; Address.propTypes = { name: PropTypes.string, short: PropTypes.bool }; export default Address;