872259b73a
* am I done? * post diff * unused selector cleanup * missed commit * mess with button styles * fix flow Co-authored-by: Jeremy Kauffman <jeremy@lbry.io> Co-authored-by: Sean Yesmunt <sean@lbry.io>
11 lines
417 B
JavaScript
11 lines
417 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectTitleForUri } from 'lbry-redux';
|
|
import { makeSelectInsufficientCreditsForUri } from 'redux/selectors/content';
|
|
import FileTitle from './view';
|
|
|
|
const select = (state, props) => ({
|
|
isInsufficientCredits: makeSelectInsufficientCreditsForUri(props.uri)(state),
|
|
title: makeSelectTitleForUri(props.uri)(state),
|
|
});
|
|
|
|
export default connect(select)(FileTitle);
|