You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
498 B
18 lines
498 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createMovieFileSelector from 'Store/Selectors/createMovieFileSelector';
|
|
import EpisodeLanguage from 'Episode/EpisodeLanguage';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
createMovieFileSelector(),
|
|
(episodeFile) => {
|
|
return {
|
|
language: episodeFile ? episodeFile.language : undefined
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
export default connect(createMapStateToProps)(EpisodeLanguage);
|