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 {
|
2017-04-29 11:50:29 +02:00
|
|
|
makeSelectClaimForUri,
|
2017-04-28 17:14:44 +02:00
|
|
|
} from 'selectors/claims'
|
2017-04-29 11:50:29 +02:00
|
|
|
import {
|
|
|
|
makeSelectFileInfoForUri,
|
|
|
|
} from 'selectors/file_info'
|
2017-04-23 11:56:50 +02:00
|
|
|
import FileTile from './view'
|
|
|
|
|
2017-04-29 11:50:29 +02:00
|
|
|
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) => ({
|
|
|
|
})
|
|
|
|
|
2017-04-29 11:50:29 +02:00
|
|
|
export default connect(makeSelect, perform)(FileTile)
|