text: import { firebaseConnect } from 'react-redux-firebase';
  import { connect } from 'react-redux';
  import { compose } from 'redux';
  import { initAddCompany } from '../actions/appActions';
  
  import DashBoard from '../components/Dashboard';
  
  function mapDispatchToProps(dispatch) {
    return {
      initAddCompany: () => dispatch(initAddCompany())
    };
  }
  
  export default compose(
    firebaseConnect(),
    connect(
      ({ firebase: { data, auth }, app: { addCompany } }) => ({
        user: data.users && data.users[auth.uid],
        auth,
        addCompany
      }),
      mapDispatchToProps
    )
  )(DashBoard);
  