Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 3x 56x | /**
* The sections that describe the post's newsletter send rather than the post itself: email
* identity in the header, no date controls, widgets pinned to the send window.
*/
export const EMAIL_SECTION_SLUGS: readonly string[] = [ 'email-opens', 'email-clicks' ];
/**
* Whether a section slug is one of the email sections.
*
* @param slug - The section slug.
* @return Whether the section reports over the send window.
*/
export function isEmailSection( slug: string | undefined ): boolean {
return slug !== undefined && EMAIL_SECTION_SLUGS.includes( slug );
}
|