sonarr-repo-only/frontend/src/EpisodeFile/EpisodeFileLanguageConnecto...

18 lines
504 B
JavaScript
Raw Normal View History

2018-01-13 02:01:27 +00:00
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import createEpisodeFileSelector from 'Store/Selectors/createEpisodeFileSelector';
import EpisodeLanguage from 'Episode/EpisodeLanguage';
function createMapStateToProps() {
return createSelector(
createEpisodeFileSelector(),
(episodeFile) => {
return {
language: episodeFile ? episodeFile.language : undefined
};
}
);
}
export default connect(createMapStateToProps)(EpisodeLanguage);