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

11 lines
437 B
JavaScript
Raw Normal View History

2020-03-14 17:07:36 +01:00
import { connect } from 'react-redux';
import { makeSelectClaimForUri, makeSelectPendingAmountByUri, makeSelectClaimIsMine } from 'lbry-redux';
2020-03-14 17:07:36 +01:00
import FileSubtitle from './view';
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
pendingAmount: makeSelectPendingAmountByUri(props.uri)(state),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
2020-03-14 17:07:36 +01:00
});
export default connect(select)(FileSubtitle);