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

12 lines
460 B
JavaScript
Raw Normal View History

2020-04-14 01:48:11 +02:00
import { connect } from 'react-redux';
import fileViewerEmbeddedTitle from './view';
import { makeSelectTagInClaimOrChannelForUri, selectTitleForUri } from 'redux/selectors/claims';
import { PREFERENCE_EMBED } from 'constants/tags';
2020-04-14 01:48:11 +02:00
export default connect((state, props) => {
return {
title: selectTitleForUri(state, props.uri),
preferEmbed: makeSelectTagInClaimOrChannelForUri(props.uri, PREFERENCE_EMBED)(state),
2020-04-14 01:48:11 +02:00
};
})(fileViewerEmbeddedTitle);