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