lbry-desktop/ui/js/page/showPage/index.js
6ea86b96 6abb7bfe92 Loading show page content fast, resolving cost and file info.
Rewards and uploaded/downloaded files currently broken
2017-05-04 11:59:45 -04:00

27 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)