2017-04-23 18:10:45 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect
|
|
|
|
} from 'react-redux'
|
2017-05-01 06:51:19 +02:00
|
|
|
import {
|
|
|
|
selectFetchingPublishedContent,
|
|
|
|
} from 'selectors/content'
|
|
|
|
import {
|
|
|
|
selectPublishedFileInfo,
|
|
|
|
} from 'selectors/file_info'
|
|
|
|
import {
|
|
|
|
doNavigate,
|
|
|
|
} from 'actions/app'
|
2017-04-23 18:10:45 +02:00
|
|
|
import FileListPublished from './view'
|
|
|
|
|
2017-05-01 06:51:19 +02:00
|
|
|
const select = (state) => ({
|
|
|
|
publishedContent: selectPublishedFileInfo(state),
|
|
|
|
fetching: selectFetchingPublishedContent(state),
|
|
|
|
})
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
navigate: (path) => dispatch(doNavigate(path)),
|
|
|
|
})
|
|
|
|
|
|
|
|
export default connect(select, perform)(FileListPublished)
|