lbry-desktop/ui/js/page/fileListDownloaded/index.js

26 lines
574 B
JavaScript
Raw Normal View History

import React from 'react'
import {
connect
} from 'react-redux'
import {
2017-04-25 07:47:21 +02:00
selectFetchingDownloadedContent,
} from 'selectors/content'
import {
selectDownloadedFileInfo,
} from 'selectors/file_info'
import {
doNavigate,
} from 'actions/app'
import FileListDownloaded from './view'
const select = (state) => ({
downloadedContent: selectDownloadedFileInfo(state),
2017-04-25 07:47:21 +02:00
fetching: selectFetchingDownloadedContent(state),
})
const perform = (dispatch) => ({
navigate: (path) => dispatch(doNavigate(path)),
})
export default connect(select, perform)(FileListDownloaded)