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

11 lines
349 B
JavaScript
Raw Normal View History

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