2021-01-27 00:45:34 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import { selectTheme } from 'redux/selectors/settings';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectClaimForUri, makeSelectClaimIsNsfw } from 'redux/selectors/claims';
|
2021-01-27 00:45:34 +01:00
|
|
|
import Ads from './view';
|
2021-01-31 04:47:06 +01:00
|
|
|
const select = (state, props) => ({
|
2021-01-27 00:45:34 +01:00
|
|
|
theme: selectTheme(state),
|
2021-01-31 04:47:06 +01:00
|
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
|
|
isMature: makeSelectClaimIsNsfw(props.uri)(state),
|
2021-01-27 00:45:34 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select)(Ads);
|