import { connect } from 'react-redux';
import {
  makeSelectCostInfoForUri,
  makeSelectFileInfoForUri,
  makeSelectClaimIsMine,
  doNotify,
} from 'lbry-redux';
import FileActions from './view';

const select = (state, props) => ({
  fileInfo: makeSelectFileInfoForUri(props.uri)(state),
  /* availability check is disabled due to poor performance, TBD if it dies forever or requires daemon fix */
  costInfo: makeSelectCostInfoForUri(props.uri)(state),
  claimIsMine: makeSelectClaimIsMine(props.uri)(state),
  claimId: props.claimId,
});

const perform = dispatch => ({
  openModal: (modal, props) => dispatch(doNotify(modal, props)),
});

export default connect(select, perform)(FileActions);

@@ -508,34 +508,8 @@
 e),%0A
-  claimId: props.claimId,%0A
 %7D);%0A

Remove selector property as is already being passed in from another component