2020-03-25 04:15:05 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectClaimForUri, makeSelectMetadataForUri, makeSelectTagsForUri } from 'lbry-redux';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUser } from 'redux/selectors/user';
|
2020-03-25 04:15:05 +01:00
|
|
|
import FileDescription from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => ({
|
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
metadata: makeSelectMetadataForUri(props.uri)(state),
|
|
|
|
user: selectUser(state),
|
|
|
|
tags: makeSelectTagsForUri(props.uri)(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, null)(FileDescription);
|