2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2021-04-03 07:26:05 +02:00
|
|
|
import { makeSelectDateForUri, SETTINGS } from 'lbry-redux';
|
|
|
|
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);
|