Files
Readarr/frontend/src/Author/Index/Table/AuthorIndexTableOptionsConnector.js
T
2020-05-19 21:50:37 +01:00

15 lines
392 B
JavaScript

import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import AuthorIndexTableOptions from './AuthorIndexTableOptions';
function createMapStateToProps() {
return createSelector(
(state) => state.authorIndex.tableOptions,
(tableOptions) => {
return tableOptions;
}
);
}
export default connect(createMapStateToProps)(AuthorIndexTableOptions);