mirror of
https://github.com/appium/appium-desktop.git
synced 2026-10-17 04:31:00 +08:00
16 lines
482 B
JavaScript
16 lines
482 B
JavaScript
import { bindActionCreators } from 'redux';
|
|
import { connect } from 'react-redux';
|
|
import * as ConfigActions from '../actions/Config';
|
|
import ConfigPage from '../components/Config/Config';
|
|
import { withTranslation } from '../util';
|
|
|
|
function mapStateToProps (state) {
|
|
return state.config;
|
|
}
|
|
|
|
function mapDispatchToProps (dispatch) {
|
|
return bindActionCreators(ConfigActions, dispatch);
|
|
}
|
|
|
|
export default withTranslation(ConfigPage, connect(mapStateToProps, mapDispatchToProps));
|