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

11 lines
408 B
JavaScript
Raw Normal View History

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';
import DateTime from './view';
const select = (state, props) => ({
date: props.date || makeSelectDateForUri(props.uri)(state),
2021-04-03 07:26:05 +02:00
clock24h: makeSelectClientSetting(SETTINGS.CLOCK_24H)(state),
});
export default connect(select)(DateTime);