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

28 lines
648 B
JavaScript
Raw Normal View History

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)