lbry-desktop/ui/js/page/showPage/index.js
6ea86b96 bb9a71805b Loading show page content fast, resolving cost and file info.
Rewards and uploaded/downloaded files currently broken
2017-05-02 19:16:42 -04:00

28 lines
648 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import {
selectCurrentUri,
} from 'selectors/app'
import {
selectCurrentResolvedUriClaim,
selectCurrentUriIsDownloaded,
selectCurrentUriFileInfo,
selectCurrentUriCostInfo,
} from 'selectors/content'
import ShowPage from './view'
const select = (state) => ({
claim: selectCurrentResolvedUriClaim(state),
uri: selectCurrentUri(state),
isDownloaded: selectCurrentUriIsDownloaded(state),
fileInfo: selectCurrentUriFileInfo(state),
costInfo: selectCurrentUriCostInfo(state),
})
const perform = (dispatch) => ({
})
export default connect(select, perform)(ShowPage)