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.
21 lines
641 B
21 lines
641 B
import { connect } from 'react-redux';
|
|
import { createSelector } from 'reselect';
|
|
import createUISettingsSelector from 'Store/Selectors/createUISettingsSelector';
|
|
import RelativeDateCell from './RelativeDateCell';
|
|
|
|
function createMapStateToProps() {
|
|
return createSelector(
|
|
createUISettingsSelector(),
|
|
(uiSettings) => {
|
|
return {
|
|
showRelativeDates: uiSettings.showRelativeDates,
|
|
shortDateFormat: uiSettings.shortDateFormat,
|
|
longDateFormat: uiSettings.longDateFormat,
|
|
timeFormat: uiSettings.timeFormat
|
|
};
|
|
}
|
|
);
|
|
}
|
|
|
|
export default connect(createMapStateToProps, null)(RelativeDateCell);
|