import { __ } from '@wordpress/i18n'; /** * Template selection modal — shown when a new campaign has no saved layout. * Templates are provided from PHP via window.betterPaymentCampaignData.templates. */ const TEMPLATE_ICONS = { 'blank-1col': ( ), 'blank-2col': ( ), 'blank-3col': ( ), 'charity-basic': ( ), }; export default function TemplateModal( { dispatch } ) { const templates = window?.betterPaymentCampaignData?.templates || []; const handleSelect = ( template ) => { dispatch( { type: 'APPLY_TEMPLATE', template } ); }; return (
{ __( 'Select a template to begin building your fundraising campaign.', 'better-payment' ) }