2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 03:57:48 +02:00
|
|
|
import { selectDateForUri } from 'redux/selectors/claims';
|
2021-10-17 10:36:14 +02:00
|
|
|
import * as SETTINGS from 'constants/settings';
|
2021-11-23 05:29:04 +01:00
|
|
|
import { selectClientSetting } 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) => ({
|
2021-10-08 03:57:48 +02:00
|
|
|
date: props.date || selectDateForUri(state, props.uri),
|
2021-11-23 05:29:04 +01:00
|
|
|
clock24h: selectClientSetting(state, SETTINGS.CLOCK_24H),
|
2017-09-03 18:35:01 +02:00
|
|
|
});
|
2019-05-06 19:22:10 +02:00
|
|
|
export default connect(select)(DateTime);
|