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