lbry-desktop/web/component/fileViewerEmbeddedEnded/index.js

11 lines
480 B
JavaScript
Raw Permalink Normal View History

2020-04-14 01:48:11 +02:00
import { connect } from 'react-redux';
import fileViewerEmbeddedEnded from './view';
import { selectUserVerifiedEmail } from 'redux/selectors/user';
import { makeSelectTagInClaimOrChannelForUri } from 'lbry-redux';
import { PREFERENCE_EMBED } from 'constants/tags';
2020-04-14 01:48:11 +02:00
export default connect((state, props) => ({
2020-04-14 01:48:11 +02:00
isAuthenticated: selectUserVerifiedEmail(state),
preferEmbed: makeSelectTagInClaimOrChannelForUri(props.uri, PREFERENCE_EMBED)(state),
2020-04-14 01:48:11 +02:00
}))(fileViewerEmbeddedEnded);