{"size": 589, "ext": "js", "max_stars_repo_path": "src/components/PrefDialog/PrefDialog.container.js", "max_stars_repo_name": "SaenkoM/bfx-report-ui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/PrefDialog/PrefDialog.container.js", "max_issues_repo_name": "SaenkoM/bfx-report-ui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/PrefDialog/PrefDialog.container.js", "max_forks_repo_name": "SaenkoM/bfx-report-ui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.0476190476, "max_line_length": 84, "alphanum_fraction": 0.7589134126}
import { connect } from 'react-redux'

import baseActions from 'state/base/actions'
import { getTheme, getTimezone } from 'state/base/selectors'

import PrefDialog from './PrefDialog'

const mapStateToProps = (state = {}) => ({
  theme: getTheme(state),
  timezone: getTimezone(state),
})

const mapDispatchToProps = dispatch => ({
  setTheme: theme => dispatch(baseActions.setTheme(theme)),
  setTimeZone: timezone => dispatch(baseActions.setTimezone(timezone)),
})

const PrefDialogContainer = connect(mapStateToProps, mapDispatchToProps)(PrefDialog)

export default PrefDialogContainer
