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

15 lines
664 B
JavaScript
Raw Normal View History

2019-06-11 20:10:58 +02:00
import { connect } from 'react-redux';
import { makeSelectFilePartlyDownloaded, makeSelectClaimIsMine, makeSelectClaimWasPurchased } from 'lbry-redux';
2019-06-11 20:10:58 +02:00
import { makeSelectIsSubscribed, makeSelectIsNew } from 'redux/selectors/subscriptions';
import FileProperties from './view';
const select = (state, props) => ({
2019-08-14 20:09:45 +02:00
downloaded: makeSelectFilePartlyDownloaded(props.uri)(state),
2019-06-11 20:10:58 +02:00
isSubscribed: makeSelectIsSubscribed(props.uri)(state),
isNew: makeSelectIsNew(props.uri)(state),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
claimWasPurchased: makeSelectClaimWasPurchased(props.uri)(state),
2019-06-11 20:10:58 +02:00
});
export default connect(select, null)(FileProperties);