469e9cddc0
- Channel About - description: seems handy to have a preview, so pulled in the "allowed" logic. - email: shouldn't render preview at all - website: shouldn't render preview at all - Publish Preview: - description: there's not enough height anyway, so don't render preview.
14 lines
697 B
JavaScript
14 lines
697 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectMetadataItemForUri, makeSelectClaimForUri, makeSelectStakedLevelForChannelUri } from 'lbry-redux';
|
|
import ChannelAbout from './view';
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
stakedLevel: makeSelectStakedLevelForChannelUri(props.uri)(state),
|
|
description: makeSelectMetadataItemForUri(props.uri, 'description')(state),
|
|
website: makeSelectMetadataItemForUri(props.uri, 'website_url')(state),
|
|
email: makeSelectMetadataItemForUri(props.uri, 'email')(state),
|
|
languages: makeSelectMetadataItemForUri(props.uri, 'languages')(state),
|
|
});
|
|
|
|
export default connect(select, null)(ChannelAbout);
|