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.
Readarr/frontend/src/TrackFile/TrackFileLanguageConnector.js

18 lines
484 B

import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import createTrackFileSelector from 'Store/Selectors/createTrackFileSelector';
import TrackLanguage from 'Album/TrackLanguage';
function createMapStateToProps() {
return createSelector(
createTrackFileSelector(),
(trackFile) => {
return {
language: trackFile ? trackFile.language : undefined
};
}
);
}
export default connect(createMapStateToProps)(TrackLanguage);