lbry-desktop/ui/js/component/fileTile/index.js

28 lines
608 B
JavaScript
Raw Normal View History

2017-04-23 11:56:50 +02:00
import React from 'react'
import {
connect
} from 'react-redux'
2017-04-23 16:01:00 +02:00
import {
makeSelectClaimForUri,
2017-04-28 17:14:44 +02:00
} from 'selectors/claims'
import {
makeSelectFileInfoForUri,
} from 'selectors/file_info'
2017-04-23 11:56:50 +02:00
import FileTile from './view'
const makeSelect = () => {
const selectClaimForUri = makeSelectClaimForUri()
const selectFileInfoForUri = makeSelectFileInfoForUri()
const select = (state, props) => ({
claim: selectClaimForUri(state, props),
fileInfo: selectFileInfoForUri(state, props),
})
return select
}
2017-04-23 11:56:50 +02:00
const perform = (dispatch) => ({
})
export default connect(makeSelect, perform)(FileTile)