lbry-desktop/src/renderer/page/fileListDownloaded/index.js
2018-04-18 00:13:00 -04:00

15 lines
495 B
JavaScript

import { connect } from 'react-redux';
import { selectFileInfosDownloaded, selectMyClaimsWithoutChannels } from 'lbry-redux';
import { doNavigate } from 'redux/actions/navigation';
import FileListDownloaded from './view';
const select = state => ({
fileInfos: selectFileInfosDownloaded(state),
claims: selectMyClaimsWithoutChannels(state),
});
const perform = dispatch => ({
navigate: path => dispatch(doNavigate(path)),
});
export default connect(select, perform)(FileListDownloaded);