lbry-desktop/ui/component/dateTime/index.js

9 lines
266 B
JavaScript
Raw Normal View History

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);