import labels from '../labels'; import formState from '../state'; /** * Get the html markup for the "send coupon to" section of the modal. * * @since 4.5.3 * * @returns {string} Section html markup. */ export default function sendCouponToSectionMarkup() { return `
1

${labels.send_coupon_to}

${getSectionContent(formState.get('option'))}
`; } /** * Get the HTML markup for the "send coupon to" section of the modal. * * @since 4.6.4 * * @param {string} option The option to pass to the section renderer. * @returns {string} Section HTML markup. */ function getSectionContent(option: string) { switch (option) { case 'email': return ` `; case 'pushengage': return ` `; } return ''; }