mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 23:45:46 +02:00
22 lines
562 B
JavaScript
22 lines
562 B
JavaScript
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import { saveGeneralSettings } from 'Store/Actions/settingsActions';
|
|
import HistoryOptions from './HistoryOptions';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.settings.general.item,
|
|
(generalSettings) => {
|
|
return {
|
|
...generalSettings
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
const mapDispatchToProps = {
|
|
dispatchSaveGeneralSettings: saveGeneralSettings
|
|
};
|
|
|
|
export default connect(createMapStateToProps, mapDispatchToProps)(HistoryOptions);
|