mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
16 lines
551 B
JavaScript
16 lines
551 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectFileInfosDownloaded } from 'redux/selectors/file_info';
|
|
import { selectMyClaimsWithoutChannels } from 'redux/selectors/claims';
|
|
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);
|