2017-04-24 09:25:27 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect
|
|
|
|
} from 'react-redux'
|
|
|
|
import {
|
|
|
|
selectCurrentUri,
|
|
|
|
} from 'selectors/app'
|
|
|
|
import {
|
2017-05-12 01:28:43 +02:00
|
|
|
selectCurrentUriFileInfo,
|
2017-04-24 09:25:27 +02:00
|
|
|
selectCurrentUriIsDownloaded,
|
2017-04-28 17:14:44 +02:00
|
|
|
} from 'selectors/file_info'
|
|
|
|
import {
|
|
|
|
selectCurrentUriClaim,
|
|
|
|
} from 'selectors/claims'
|
|
|
|
import {
|
2017-04-24 09:25:27 +02:00
|
|
|
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'
|
2017-04-24 09:25:27 +02:00
|
|
|
|
|
|
|
const select = (state) => ({
|
2017-04-28 17:14:44 +02:00
|
|
|
claim: selectCurrentUriClaim(state),
|
2017-04-24 09:25:27 +02:00
|
|
|
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)
|