2021-03-11 18:08:11 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-11-10 03:30:03 +01:00
|
|
|
import { makeSelectClaimForUri, selectClaimIsMineForUri } from 'redux/selectors/claims';
|
2021-03-11 18:08:11 +01:00
|
|
|
import PostViewer from './view';
|
2021-05-12 20:26:47 +02:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2021-03-11 18:08:11 +01:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2021-11-10 03:30:03 +01:00
|
|
|
claimIsMine: selectClaimIsMineForUri(state, props.uri),
|
2021-03-11 18:08:11 +01:00
|
|
|
});
|
|
|
|
|
2021-05-12 20:26:47 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doOpenModal,
|
|
|
|
})(PostViewer);
|