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>
10 lines
367 B
JavaScript
10 lines
367 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectFileRenderModeForUri } from 'redux/selectors/content';
|
|
import { withRouter } from 'react-router';
|
|
import FileRenderDownload from './view';
|
|
|
|
const select = (state, props) => ({
|
|
renderMode: makeSelectFileRenderModeForUri(props.uri)(state),
|
|
});
|
|
|
|
export default withRouter(connect(select)(FileRenderDownload));
|