2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +02:00
|
|
|
import { makeSelectDateForUri } from 'redux/selectors/claims';
|
|
|
|
import * as SETTINGS from 'constants/settings';
|
2021-04-03 07:26:05 +02:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
2017-12-21 22:08:54 +01:00
|
|
|
import DateTime from './view';
|
2017-09-03 18:35:01 +02:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2019-05-06 19:22:10 +02:00
|
|
|
date: props.date || makeSelectDateForUri(props.uri)(state),
|
2021-04-03 07:26:05 +02:00
|
|
|
clock24h: makeSelectClientSetting(SETTINGS.CLOCK_24H)(state),
|
2017-09-03 18:35:01 +02:00
|
|
|
});
|
2019-05-06 19:22:10 +02:00
|
|
|
export default connect(select)(DateTime);
|