lbry-desktop/ui/js/page/fileListPublished/index.js
2017-05-02 19:35:59 -04:00

25 lines
567 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import {
selectFetchingPublishedContent,
} from 'selectors/content'
import {
selectPublishedFileInfo,
} from 'selectors/file_info'
import {
doNavigate,
} from 'actions/app'
import FileListPublished from './view'
const select = (state) => ({
publishedContent: selectPublishedFileInfo(state),
fetching: selectFetchingPublishedContent(state),
})
const perform = (dispatch) => ({
navigate: (path) => dispatch(doNavigate(path)),
})
export default connect(select, perform)(FileListPublished)