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.
20 lines
548 B
20 lines
548 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
import Legend from './Legend';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
(state) => state.calendar.options,
|
|
createUISettingsSelector(),
|
|
(calendarOptions, uiSettings) => {
|
|
return {
|
|
...calendarOptions,
|
|
colorImpairedMode: uiSettings.enableColorImpairedMode
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
export default connect(createMapStateToProps)(Legend);
|