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

13 lines
506 B
JavaScript
Raw Permalink Normal View History

2019-06-11 20:10:58 +02:00
import { connect } from 'react-redux';
2020-05-21 17:38:28 +02:00
import { makeSelectFilePartlyDownloaded, makeSelectClaimIsMine } from 'lbry-redux';
2020-11-02 17:51:08 +01:00
import { makeSelectIsSubscribed } from 'redux/selectors/subscriptions';
2019-06-11 20:10:58 +02:00
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),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
});
export default connect(select, null)(FileProperties);