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

25 lines
754 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
2020-10-23 00:11:22 +02:00
import {
makeSelectClaimForUri,
makeSelectMetadataForUri,
makeSelectTagsForUri,
makeSelectPendingAmountByUri,
makeSelectClaimIsMine,
2020-10-23 00:11:22 +02:00
} from 'lbry-redux';
import { doOpenModal } from 'redux/actions/app';
import { selectUser } from 'redux/selectors/user';
import FileDescription from './view';
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
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),
});
export default connect(select, {
doOpenModal,
})(FileDescription);