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

12 lines
468 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, makeSelectTitleForUri } 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: makeSelectTitleForUri(props.uri)(state),
preferEmbed: makeSelectTagInClaimOrChannelForUri(props.uri, PREFERENCE_EMBED)(state),
2020-04-14 01:48:11 +02:00
};
})(fileViewerEmbeddedTitle);