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

32 lines
707 B
JavaScript
Raw Normal View History

import React from 'react'
import {
connect
} from 'react-redux'
import {
selectCurrentUri,
} from 'selectors/app'
import {
2017-05-12 01:28:43 +02:00
selectCurrentUriFileInfo,
selectCurrentUriIsDownloaded,
2017-04-28 17:14:44 +02:00
} from 'selectors/file_info'
import {
selectCurrentUriClaim,
} from 'selectors/claims'
import {
selectCurrentUriCostInfo,
2017-04-28 17:14:44 +02:00
} from 'selectors/cost_info'
2017-05-04 05:44:08 +02:00
import FilePage from './view'
const select = (state) => ({
2017-04-28 17:14:44 +02:00
claim: selectCurrentUriClaim(state),
uri: selectCurrentUri(state),
isDownloaded: selectCurrentUriIsDownloaded(state),
fileInfo: selectCurrentUriFileInfo(state),
costInfo: selectCurrentUriCostInfo(state),
})
const perform = (dispatch) => ({
})
2017-05-04 05:44:08 +02:00
export default connect(select, perform)(FilePage)