2019-05-07 04:35:04 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-04-08 19:59:22 +02:00
|
|
|
import { makeSelectMetadataItemForUri, makeSelectClaimForUri } from 'lbry-redux';
|
2019-05-07 04:35:04 +02:00
|
|
|
import ChannelAbout from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2020-03-12 15:57:38 +01:00
|
|
|
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),
|
2020-10-15 19:56:55 +02:00
|
|
|
languages: makeSelectMetadataItemForUri(props.uri, 'languages')(state),
|
2019-05-07 04:35:04 +02:00
|
|
|
});
|
|
|
|
|
2020-03-12 15:57:38 +01:00
|
|
|
export default connect(select, null)(ChannelAbout);
|