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

12 lines
450 B
JavaScript
Raw Permalink Normal View History

import { connect } from 'react-redux';
import { selectDateForUri } from 'redux/selectors/claims';
import * as SETTINGS from 'constants/settings';
2021-04-03 07:26:05 +02:00
import { makeSelectClientSetting } from 'redux/selectors/settings';
import DateTime from './view';
const select = (state, props) => ({
date: props.date || selectDateForUri(state, props.uri),
2021-04-03 07:26:05 +02:00
clock24h: makeSelectClientSetting(SETTINGS.CLOCK_24H)(state),
});
export default connect(select)(DateTime);