{"size": 709, "ext": "js", "max_stars_repo_path": "src/renderer/account/components/Management/index.js", "max_stars_repo_name": "Splyse/nos-client", "max_stars_repo_stars_event_min_datetime": "2018-04-14T13:50:54.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-26T02:12:32.000Z", "max_issues_repo_path": "src/renderer/account/components/Management/index.js", "max_issues_repo_name": "Splyse/nos-client", "max_issues_repo_issues_event_min_datetime": "2018-04-15T10:55:57.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T18:53:38.000Z", "max_forks_repo_path": "src/renderer/account/components/Management/index.js", "max_forks_repo_name": "Splyse/nos-client", "max_forks_repo_forks_event_min_datetime": "2018-04-14T22:00:35.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-15T18:16:01.000Z"}
{"max_stars_count": 254, "max_issues_count": 1192, "max_forks_count": 88, "avg_line_length": 33.7619047619, "max_line_length": 92, "alphanum_fraction": 0.7672778561}
import { compose } from 'recompose';
import { withData } from 'spunky';

import withInitialCall from 'shared/hocs/withInitialCall';
import withNewWalletModal from 'shared/hocs/withNewWalletModal';

import authActions from 'auth/actions/authActions';
import walletActions from 'auth/actions/walletActions';

import Management from './Management';

const mapAuthDataToProps = (account) => ({ account });
const mapWalletDataToProps = (wallets) => ({ wallets });

export default compose(
  withNewWalletModal(),
  withData(authActions, mapAuthDataToProps),
  withInitialCall(walletActions, ({ account }) => ({ accountLabel: account.accountLabel })),
  withData(walletActions, mapWalletDataToProps)
)(Management);
