const { connect } = require('preact-redux');
const preact = require('preact');

const Team = require('./team');
const AccountManagement = require('./account.management');

const addState = connect(
    function receiveState(state) {
        const {
            ws,
            account,
        } = state;

        return {
            account,
        };
    },
);

function Account(args) {
    const {
        account,
    } = args;

    return (
        <main class="menu">
            <Team />
            <AccountManagement />
        </main>
    );
}

module.exports = addState(Account);
