2020-06-16 02:30:41 +00:00
|
|
|
/**
|
|
|
|
* External depenencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* WooCommerce dependencies
|
|
|
|
*/
|
|
|
|
import { getSetting } from '@woocommerce/wc-admin-settings';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
import RecommendedExtensions from '../components/recommended-extensions';
|
|
|
|
import KnowledgeBase from '../components/knowledge-base';
|
|
|
|
import '../data';
|
|
|
|
|
|
|
|
const CouponsOverview = () => {
|
|
|
|
const allowMarketplaceSuggestions = getSetting(
|
|
|
|
'allowMarketplaceSuggestions',
|
|
|
|
false
|
|
|
|
);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-marketing-coupons">
|
|
|
|
{ allowMarketplaceSuggestions && (
|
|
|
|
<RecommendedExtensions
|
2020-07-28 02:32:58 +00:00
|
|
|
title={ __(
|
|
|
|
'Recommended coupon extensions',
|
|
|
|
'woocommerce-admin'
|
|
|
|
) }
|
|
|
|
description={ __(
|
|
|
|
'Take your coupon marketing to the next level with our recommended coupon extensions.',
|
|
|
|
'woocommerce-admin'
|
|
|
|
) }
|
2020-06-16 02:30:41 +00:00
|
|
|
category="coupons"
|
|
|
|
/>
|
|
|
|
) }
|
|
|
|
<KnowledgeBase
|
|
|
|
category="coupons"
|
2020-07-28 02:32:58 +00:00
|
|
|
description={ __(
|
|
|
|
'Learn the ins and outs of successful coupon marketing from the experts at WooCommerce.',
|
|
|
|
'woocommerce-admin'
|
|
|
|
) }
|
2020-06-16 02:30:41 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default CouponsOverview;
|