mirror of
https://github.com/Unleash/unleash.git
synced 2025-05-08 01:15:49 +02:00
16 lines
430 B
JavaScript
16 lines
430 B
JavaScript
import { connect } from 'react-redux';
|
|
import ListComponent from './archive-list-component';
|
|
import { fetchArchive, revive } from '../../store/archive-actions';
|
|
|
|
const mapStateToProps = state => {
|
|
const archive = state.archive.get('list').toArray();
|
|
|
|
return {
|
|
archive,
|
|
};
|
|
};
|
|
|
|
const ArchiveListContainer = connect(mapStateToProps, { fetchArchive, revive })(ListComponent);
|
|
|
|
export default ArchiveListContainer;
|