2020-04-14 01:48:11 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import fileViewerEmbeddedEnded from './view';
|
2020-06-15 22:33:03 +02:00
|
|
|
import { selectUserVerifiedEmail } from 'redux/selectors/user';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectTagInClaimOrChannelForUri } 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
|
|
|
|
2021-09-18 16:23:30 +02:00
|
|
|
export default connect((state, props) => ({
|
2020-04-14 01:48:11 +02:00
|
|
|
isAuthenticated: selectUserVerifiedEmail(state),
|
2021-09-18 16:23:30 +02:00
|
|
|
preferEmbed: makeSelectTagInClaimOrChannelForUri(props.uri, PREFERENCE_EMBED)(state),
|
2020-04-14 01:48:11 +02:00
|
|
|
}))(fileViewerEmbeddedEnded);
|