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

11 lines
341 B
JavaScript
Raw Normal View History

2020-03-18 22:14:11 +01:00
import { connect } from 'react-redux';
import { makeSelectClaimForUri, selectTitleForUri } from 'redux/selectors/claims';
2020-03-18 22:14:11 +01:00
import ChannelTitle from './view';
const select = (state, props) => ({
title: selectTitleForUri(state, props.uri),
2020-03-18 22:14:11 +01:00
claim: makeSelectClaimForUri(props.uri)(state),
});
export default connect(select)(ChannelTitle);