lbry-desktop/ui/component/postViewer/index.js

14 lines
424 B
JavaScript
Raw Normal View History

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