14 lines
408 B
JavaScript
14 lines
408 B
JavaScript
|
import { connect } from 'react-redux';
|
||
|
import { makeSelectClaimForUri, makeSelectClaimIsMine } from 'lbry-redux';
|
||
|
import PostViewer from './view';
|
||
|
import { doOpenModal } from 'redux/actions/app';
|
||
|
|
||
|
const select = (state, props) => ({
|
||
|
claim: makeSelectClaimForUri(props.uri)(state),
|
||
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
||
|
});
|
||
|
|
||
|
export default connect(select, {
|
||
|
doOpenModal,
|
||
|
})(PostViewer);
|