text: // @flow
  import React, { Component } from 'react';
  import { withTranslation } from 'react-i18next';
  
  import GlobalTransactionModal from '../../../Global/Transaction/Modal';
  import ToolsFormPermissionsAuth from '../../Form/Permissions/Auth';
  
  class ToolsModalPermissionAuth extends Component<Props> {
    render() {
      const {
        actions,
        auth,
        blockExplorers,
        button,
        connection,
        defaultValue,
        open,
        pubkey,
        settings,
        system,
        t
      } = this.props;
      return (
        <GlobalTransactionModal
          actionName="UPDATEAUTH"
          actions={actions}
          blockExplorers={blockExplorers}
          button={button}
          content={(
            <ToolsFormPermissionsAuth
              actions={actions}
              auth={auth}
              connection={connection}
              defaultValue={defaultValue}
              pubkey={pubkey}
              settings={settings}
              system={system}
            />
          )}
          icon="share square"
          open={open}
          pubkey={pubkey}
          settings={settings}
          system={system}
          title={t('tools_modal_permissions_auth_header')}
        />
      );
    }
  }
  
  export default withTranslation('tools')(ToolsModalPermissionAuth);
  