lbry-desktop/ui/component/fileSubtitle/index.js
2020-07-27 10:48:05 -04:00

10 lines
437 B
JavaScript

import { connect } from 'react-redux';
import { makeSelectClaimForUri, makeSelectPendingAmountByUri, makeSelectClaimIsMine } from 'lbry-redux';
import FileSubtitle from './view';
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
pendingAmount: makeSelectPendingAmountByUri(props.uri)(state),
claimIsMine: makeSelectClaimIsMine(props.uri)(state),
});
export default connect(select)(FileSubtitle);