1-
21import { displayFactoryTwo } from 'email-template-object' ;
32
43import EmailTemplateBodyComponent from '../components/bodyComponent' ;
54import footerString from '../display/displayFooter' ;
65
76// const ERROR_BODY = '`bodyContent` is a required option for `renderTemplate`';
87
9- import {
10- logoTopComponent , logoBottomComponent
8+ import {
9+ logoTopComponent ,
10+ logoBottomComponent ,
1111} from 'atherdon-newsletter-react-layouts-innercomponents' ;
1212
13-
1413const checkingBodyContent = ( bodyContent ) => {
15- if ( ! bodyContent ) {
16- throw new Error ( '`bodyContent` is a required option for `renderTemplate`' ) ;
17- }
18- }
14+ if ( ! bodyContent ) {
15+ throw new Error ( '`bodyContent` is a required option for `renderTemplate`' ) ;
16+ }
17+ } ;
1918
2019// const ContentData = '';
2120
22-
2321let addon1 = {
24- footer : footerString ,
25-
26- logoTop :logoTopComponent ( ) ,
27- logoBottom : logoBottomComponent ( ) ,
28-
29- content : '[[THIS IS PLACE FOR A CONTENT INSIDE]'
22+ footer : footerString ,
3023
31- // previewText: previewTextComponent('[AMA PREVIEW TEXT]')
24+ logoTop : logoTopComponent ( ) ,
25+ logoBottom : logoBottomComponent ( ) ,
3226
33- }
27+ content : '[[THIS IS PLACE FOR A CONTENT INSIDE]' ,
3428
29+ // previewText: previewTextComponent('[AMA PREVIEW TEXT]')
30+ } ;
3531
3632//variant one
3733const settings = {
38- component : EmailTemplateBodyComponent ,
39- // params: { footerComponent, logoTop, logoBottom, content },
40- params : addon1 ,
41- // subcomponents: { }
42-
43- }
34+ component : EmailTemplateBodyComponent ,
35+ // params: { footerComponent, logoTop, logoBottom, content },
36+ params : addon1 ,
37+ // subcomponents: { }
38+ } ;
4439
4540const BodyFactory = new displayFactoryTwo ( ) ;
4641// console.log(BodyFactory.create(settings))
47- export default BodyFactory . create ( settings ) ;
42+ export default BodyFactory . create ( settings ) ;
0 commit comments