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

14 lines
579 B
JavaScript
Raw Normal View History

2019-06-11 14:10:58 -04:00
import { connect } from 'react-redux';
2021-04-23 15:59:48 -04:00
import { makeSelectFilePartlyDownloaded, makeSelectClaimIsMine, makeSelectClaimForUri } from 'lbry-redux';
2020-11-02 11:51:08 -05:00
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
2019-06-11 14:10:58 -04:00
import FileProperties from './view';
const select = (state, props) => ({
2021-04-23 15:59:48 -04:00
claim: makeSelectClaimForUri(props.uri)(state),
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),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
});
export default connect(select, null)(FileProperties);