2020-03-25 04:15:05 +01:00
|
|
|
import { connect } from 'react-redux';
|
2020-10-23 00:11:22 +02:00
|
|
|
import {
|
|
|
|
makeSelectClaimForUri,
|
|
|
|
makeSelectMetadataForUri,
|
|
|
|
makeSelectTagsForUri,
|
|
|
|
makeSelectPendingAmountByUri,
|
2020-10-23 21:55:19 +02:00
|
|
|
makeSelectClaimIsMine,
|
2020-10-23 00:11:22 +02:00
|
|
|
} from 'lbry-redux';
|
2020-10-23 21:55:19 +02:00
|
|
|
import { doOpenModal } from 'redux/actions/app';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
2020-03-25 04:15:05 +01:00
|
|
|
import FileDescription from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
2020-10-23 21:55:19 +02:00
|
|
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
2020-03-25 04:15:05 +01:00
|
|
|
metadata: makeSelectMetadataForUri(props.uri)(state),
|
|
|
|
user: selectUser(state),
|
|
|
|
tags: makeSelectTagsForUri(props.uri)(state),
|
2020-10-23 00:11:22 +02:00
|
|
|
pendingAmount: makeSelectPendingAmountByUri(props.uri)(state),
|
2020-03-25 04:15:05 +01:00
|
|
|
});
|
|
|
|
|
2020-10-23 21:55:19 +02:00
|
|
|
export default connect(select, {
|
|
|
|
doOpenModal,
|
|
|
|
})(FileDescription);
|