2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2019-05-06 19:22:10 +02:00
|
|
|
import { makeSelectDateForUri } from 'lbry-redux';
|
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),
|
2017-09-03 18:35:01 +02:00
|
|
|
});
|
2019-05-06 19:22:10 +02:00
|
|
|
export default connect(select)(DateTime);
|