2017-12-21 18:08:54 -03:00
|
|
|
import { connect } from 'react-redux';
|
2019-05-06 13:22:10 -04:00
|
|
|
import { makeSelectDateForUri } from 'lbry-redux';
|
2017-12-21 18:08:54 -03:00
|
|
|
import DateTime from './view';
|
2017-09-03 12:35:01 -04:00
|
|
|
|
|
|
|
const select = (state, props) => ({
|
2019-05-06 13:22:10 -04:00
|
|
|
date: props.date || makeSelectDateForUri(props.uri)(state),
|
2017-09-03 12:35:01 -04:00
|
|
|
});
|
2019-05-06 13:22:10 -04:00
|
|
|
export default connect(select)(DateTime);
|