| 1 |
import {__} from '@wordpress/i18n'; |
| 2 |
import CampaignStats from '../Components/CampaignStats'; |
| 3 |
import CampaignNotice from '@givewp/campaigns/admin/components/CampaignDetailsPage/Components/Notices/CampaignNotice'; |
| 4 |
import {useCampaignNoticeHook} from '@givewp/campaigns/hooks'; |
| 5 |
|
| 6 |
/** |
| 7 |
* @since 4.0.0 |
| 8 |
*/ |
| 9 |
export default function CampaignDetailsOverviewTab() { |
| 10 |
const [showTooltip, dismissTooltip] = useCampaignNoticeHook('givewp_campaign_form_notice'); |
| 11 |
|
| 12 |
return ( |
| 13 |
<div> |
| 14 |
<div> |
| 15 |
<CampaignStats /> |
| 16 |
</div> |
| 17 |
{showTooltip && ( |
| 18 |
<CampaignNotice |
| 19 |
title={__('Campaign Form', 'give')} |
| 20 |
description={__( |
| 21 |
'Get a quick view of all the forms associated with your campaign in the forms page. You can edit and add multiple forms to your campaign.', |
| 22 |
'give' |
| 23 |
)} |
| 24 |
linkHref="https://docs.givewp.com/campaign-forms" |
| 25 |
linkText={__('All you need to know about campaigns', 'give')} |
| 26 |
handleDismiss={dismissTooltip} |
| 27 |
type={'campaignForm'} |
| 28 |
/> |
| 29 |
)} |
| 30 |
</div> |
| 31 |
); |
| 32 |
} |
| 33 |
|