lbry-desktop/ui/component/dateTime/index.js
2019-11-11 13:27:29 -05:00

8 lines
266 B
JavaScript

import { connect } from 'react-redux';
import { makeSelectDateForUri } from 'lbry-redux';
import DateTime from './view';
const select = (state, props) => ({
date: props.date || makeSelectDateForUri(props.uri)(state),
});
export default connect(select)(DateTime);