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