lbry-desktop/web/component/ads/index.js
2021-02-02 21:18:13 -05:00

11 lines
406 B
JavaScript

import { connect } from 'react-redux';
import { selectTheme } from 'redux/selectors/settings';
import { makeSelectClaimForUri, makeSelectClaimIsNsfw } from 'lbry-redux';
import Ads from './view';
const select = (state, props) => ({
theme: selectTheme(state),
claim: makeSelectClaimForUri(props.uri)(state),
isMature: makeSelectClaimIsNsfw(props.uri)(state),
});
export default connect(select)(Ads);