// Copyright 2017-2019 @polkadot/app-tech-comm authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { AccountId } from '@polkadot/types/interfaces'; import { I18nProps } from '@polkadot/react-components/types'; import React from 'react'; import { AddressSmall, Table } from '@polkadot/react-components'; import translate from '../translate'; interface Props extends I18nProps { members?: AccountId[]; className?: string; } function Members ({ className, members, t }: Props): React.ReactElement { return (
{members?.length ? ( {members.map((accountId): React.ReactNode => ( ))}
) : t('No members found') }
); } export default translate(Members);