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

16 lines
682 B
JavaScript
Raw Normal View History

2019-05-07 04:35:04 +02:00
import { connect } from 'react-redux';
import { makeSelectMetadataItemForUri, makeSelectClaimForUri } from 'redux/selectors/claims';
2022-05-10 20:10:31 +02:00
import { selectUser } from 'redux/selectors/user';
2019-05-07 04:35:04 +02:00
import ChannelAbout from './view';
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
2019-05-07 04:35:04 +02:00
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),
2022-05-10 20:10:31 +02:00
user: selectUser(state),
2019-05-07 04:35:04 +02:00
});
export default connect(select, null)(ChannelAbout);