2021-12-22 17:12:44 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { makeSelectClaimForUri } from 'redux/selectors/claims';
|
2022-02-16 06:44:47 +01:00
|
|
|
import { selectActiveLivestreamForClaimId } from 'redux/selectors/livestream';
|
2021-12-22 17:12:44 +01:00
|
|
|
import LivestreamDateTime from './view';
|
|
|
|
|
|
|
|
const select = (state, props) => {
|
|
|
|
const claim = props.uri && makeSelectClaimForUri(props.uri)(state);
|
|
|
|
return {
|
|
|
|
claim,
|
2022-02-16 06:44:47 +01:00
|
|
|
activeLivestream: selectActiveLivestreamForClaimId(state, claim?.claim_id),
|
2021-12-22 17:12:44 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(select)(LivestreamDateTime);
|