12 lines
506 B
JavaScript
12 lines
506 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectFilePartlyDownloaded, makeSelectClaimIsMine } from 'lbry-redux';
|
|
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
|
|
import FileProperties from './view';
|
|
|
|
const select = (state, props) => ({
|
|
downloaded: makeSelectFilePartlyDownloaded(props.uri)(state),
|
|
isSubscribed: makeSelectIsSubscribed(props.uri)(state),
|
|
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
|
|
});
|
|
|
|
export default connect(select, null)(FileProperties);
|