2020-04-14 01:48:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import fileViewerEmbeddedTitle from './view';
|
2021-09-18 16:23:30 +02:00
|
|
|
import { makeSelectTagInClaimOrChannelForUri, makeSelectTitleForUri } from 'lbry-redux';
|
|
|
|
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),
|
2021-09-18 16:23:30 +02:00
|
|
|
preferEmbed: makeSelectTagInClaimOrChannelForUri(props.uri, PREFERENCE_EMBED)(state),
|
2020-04-14 01:48:11 +02:00
|
|
|
};
|
|
|
|
})(fileViewerEmbeddedTitle);
|