2019-06-11 14:10:58 -04:00
|
|
|
import { connect } from 'react-redux';
|
2020-05-21 11:38:28 -04:00
|
|
|
import { makeSelectFilePartlyDownloaded, makeSelectClaimIsMine } from 'lbry-redux';
|
2019-06-11 14:10:58 -04:00
|
|
|
import { makeSelectIsSubscribed, makeSelectIsNew } from 'redux/selectors/subscriptions';
|
|
|
|
import FileProperties from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2019-08-14 14:09:45 -04:00
|
|
|
downloaded: makeSelectFilePartlyDownloaded(props.uri)(state),
|
2019-06-11 14:10:58 -04:00
|
|
|
isSubscribed: makeSelectIsSubscribed(props.uri)(state),
|
|
|
|
isNew: makeSelectIsNew(props.uri)(state),
|
|
|
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
|
|
|
});
|
|
|
|
|
2020-05-11 11:54:39 -04:00
|
|
|
export default connect(select, null)(FileProperties);
|