iglooform 2.3.8 → 2.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import './style';
4
4
  interface Menu {
5
5
  title: string;
6
6
  key: string;
7
- badge?: 'dot' | number | BadgeProps | (() => any);
7
+ badge?: 'dot' | number | string | BadgeProps | (() => any) | string;
8
8
  }
9
9
  interface Info {
10
10
  title: string;
@@ -14,30 +14,38 @@ interface Action {
14
14
  title: string;
15
15
  onClick?: () => void;
16
16
  }
17
- interface ILayout {
17
+ interface HeaderConfig {
18
+ menus?: Menu[];
19
+ defaultSelected?: string;
20
+ selectedKey?: string;
21
+ onMenuChange?: (menuItem: any) => any;
22
+ dropMenuConfig?: {
23
+ customInfos: Info[];
24
+ actions: Action[];
25
+ };
26
+ userName?: string;
27
+ userAvatar?: string;
28
+ }
29
+ interface FooterConfig {
30
+ companyInfoRender?: () => any;
31
+ copyRightRender?: (origin: ReactNode) => any;
32
+ tel?: string;
33
+ email?: string;
34
+ workTime?: any;
35
+ address?: string;
36
+ }
37
+ interface layoutType {
18
38
  className?: string;
19
39
  style?: CSSProperties;
20
- headerConfig?: {
21
- menus?: Menu[];
22
- defaultSelected?: string;
23
- selectedKey?: string;
24
- onMenuChange?: (mentItem: any) => any;
25
- dropMenuConfig?: {
26
- customInfos: Info[];
27
- actions: Action[];
28
- };
29
- userName?: string;
30
- userAvatar?: string;
31
- };
32
- footerConfig?: {
33
- companyInfoRender?: () => any;
34
- copyRightRender?: (origin: ReactNode) => any;
35
- tel?: string;
36
- email?: string;
37
- workTime?: any;
38
- address?: string;
39
- };
40
40
  withFixedPanel?: boolean;
41
+ headerConfig?: HeaderConfig;
42
+ footerConfig?: FooterConfig;
43
+ }
44
+ declare type HeaderFunction = (props: HeaderConfig) => any;
45
+ declare type FooterFunction = (props: FooterConfig) => any;
46
+ interface ILayout extends FC<layoutType> {
47
+ Header: HeaderFunction;
48
+ Footer: FooterFunction;
41
49
  }
42
- declare const Layout: FC<ILayout>;
50
+ declare const Layout: ILayout;
43
51
  export default Layout;
@@ -1,65 +1,18 @@
1
- import "antd/es/avatar/style";
2
- import _Avatar from "antd/es/avatar";
3
- import "antd/es/col/style";
4
- import _Col from "antd/es/col";
5
- import "antd/es/row/style";
6
- import _Row from "antd/es/row";
7
- import "antd/es/space/style";
8
- import _Space from "antd/es/space";
9
- import "antd/es/badge/style";
10
- import _Badge from "antd/es/badge";
11
1
  import "antd/es/grid/style";
12
2
  import _Grid from "antd/es/grid";
13
-
14
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
15
-
16
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
-
18
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
-
20
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
-
22
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
-
24
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
-
26
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
-
28
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
29
- import { useState, useEffect } from 'react';
30
- import Typography from '../typography';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
4
  import classnames from 'classnames';
32
- import { EmailOutlined, LocationOutlined, TimeOutlined, PhoneOutlined } from 'iglooicon';
33
- import HomeMenu from '../home-menu/index';
34
- import defaultAvatar from './style/avatar.svg';
35
- import Button from '../button';
5
+ import LayoutHeader from './header';
6
+ import LayoutFooter from './footer';
36
7
  import './style';
37
8
 
38
9
  var Layout = function Layout(props) {
39
10
  var className = props.className,
40
11
  style = props.style,
41
- _props$headerConfig = props.headerConfig,
42
- headerConfig = _props$headerConfig === void 0 ? {} : _props$headerConfig,
43
- _props$footerConfig = props.footerConfig,
44
- footerConfig = _props$footerConfig === void 0 ? {} : _props$footerConfig,
45
- children = props.children,
46
- withFixedPanel = props.withFixedPanel;
47
- var _headerConfig$menus = headerConfig.menus,
48
- menus = _headerConfig$menus === void 0 ? [] : _headerConfig$menus,
49
- userName = headerConfig.userName,
50
- _headerConfig$userAva = headerConfig.userAvatar,
51
- userAvatar = _headerConfig$userAva === void 0 ? defaultAvatar : _headerConfig$userAva,
52
- _headerConfig$default = headerConfig.defaultSelected,
53
- defaultSelected = _headerConfig$default === void 0 ? '' : _headerConfig$default,
54
- onMenuChange = headerConfig.onMenuChange,
55
- dropMenuConfig = headerConfig.dropMenuConfig,
56
- selectedKey = headerConfig.selectedKey;
57
- var companyInfoRender = footerConfig.companyInfoRender,
58
- copyRightRender = footerConfig.copyRightRender,
59
- tel = footerConfig.tel,
60
- email = footerConfig.email,
61
- workTime = footerConfig.workTime,
62
- address = footerConfig.address;
12
+ headerConfig = props.headerConfig,
13
+ footerConfig = props.footerConfig,
14
+ withFixedPanel = props.withFixedPanel,
15
+ children = props.children;
63
16
  var useBreakpoint = _Grid.useBreakpoint;
64
17
 
65
18
  var _useBreakpoint = useBreakpoint(),
@@ -67,32 +20,14 @@ var Layout = function Layout(props) {
67
20
  lg = _useBreakpoint.lg,
68
21
  xl = _useBreakpoint.xl;
69
22
 
70
- var _useState = useState(defaultSelected),
71
- _useState2 = _slicedToArray(_useState, 2),
72
- activeMenu = _useState2[0],
73
- setActiveMenu = _useState2[1];
74
-
75
- var _useState3 = useState(selectedKey),
76
- _useState4 = _slicedToArray(_useState3, 2),
77
- selectedMenu = _useState4[0],
78
- setSelectedMenu = _useState4[1];
79
-
80
- useEffect(function () {
81
- if (selectedKey) {
82
- setSelectedMenu(selectedKey);
83
- }
84
- }, [selectedKey]);
85
-
86
- var defaultMenuOnClick = function defaultMenuOnClick(menuConfig) {
87
- var key = menuConfig.key;
88
- setActiveMenu(key);
89
- };
90
-
91
23
  var mobile = !md;
92
24
  var smallPC = !lg && md;
93
25
  var middlePC = !xl && lg;
94
26
  var bigPC = xl;
95
27
  var layoutContainerClass = '';
28
+ var contentDom = null;
29
+ var headerDom = null;
30
+ var footerDom = null;
96
31
 
97
32
  if (mobile) {
98
33
  layoutContainerClass = classnames({
@@ -113,292 +48,55 @@ var Layout = function Layout(props) {
113
48
  layoutContainerClass = 'igloo-customer-layout-big';
114
49
  }
115
50
 
116
- function getMenuDom(activeMenu, menuInfo) {
117
- var badge = menuInfo.badge;
51
+ switch (Object.prototype.toString.call(children)) {
52
+ case '[object Object]':
53
+ // @ts-ignore
54
+ if ((children === null || children === void 0 ? void 0 : children.type.displayName) === 'LayoutHeader') {
55
+ headerDom = children;
56
+ break;
57
+ } //@ts-ignore
118
58
 
119
- switch (_typeof(badge)) {
120
- case 'string':
121
- return _jsxs(_Fragment, {
122
- children: [_jsx(Typography, Object.assign({
123
- className: classnames({
124
- 'active-menu': activeMenu === menuInfo.key
125
- }),
126
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
127
- }, {
128
- children: menuInfo.title
129
- }), void 0), _jsx(_Badge, {
130
- dot: true,
131
- color: '#F52209'
132
- }, void 0)]
133
- }, void 0);
134
59
 
135
- case 'number':
136
- return _jsxs(_Fragment, {
137
- children: [_jsx(Typography, Object.assign({
138
- className: classnames({
139
- 'active-menu': activeMenu === menuInfo.key
140
- }),
141
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
142
- }, {
143
- children: menuInfo.title
144
- }), void 0), _jsx(_Badge, {
145
- count: badge,
146
- style: {
147
- backgroundColor: '#F52209'
148
- }
149
- }, void 0)]
150
- }, void 0);
60
+ if ((children === null || children === void 0 ? void 0 : children.type.displayName) === 'LayoutFooter') {
61
+ footerDom = children;
62
+ break;
63
+ }
151
64
 
152
- case 'object':
153
- return _jsxs(_Fragment, {
154
- children: [_jsx(Typography, Object.assign({
155
- className: classnames({
156
- 'active-menu': activeMenu === menuInfo.key
157
- }),
158
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
159
- }, {
160
- children: menuInfo.title
161
- }), void 0), _jsx(_Badge, Object.assign({}, badge), void 0)]
162
- }, void 0);
65
+ contentDom = children;
66
+ break;
163
67
 
164
- case 'undefined':
165
- return _jsx(Typography, Object.assign({
166
- className: classnames({
167
- 'active-menu': activeMenu === menuInfo.key
168
- }),
169
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
170
- }, {
171
- children: menuInfo.title
172
- }), void 0);
68
+ case '[object Array]':
69
+ //@ts-ignore
70
+ contentDom = children.filter(function (dom) {
71
+ if (dom.type) {
72
+ if (dom.type.displayName === 'LayoutHeader') headerDom = dom;
73
+ if (dom.type.displayName === 'LayoutFooter') footerDom = dom;
74
+ return dom.type.displayName !== 'LayoutHeader' && dom.type.displayName !== 'LayoutFooter';
75
+ } // 希望所有的dom都被返回,处理一下dom=数字0这种情况
173
76
 
174
- case 'function':
175
- return _jsxs(_Fragment, {
176
- children: [_jsx(Typography, Object.assign({
177
- className: classnames({
178
- 'active-menu': activeMenu === menuInfo.key
179
- }),
180
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
181
- }, {
182
- children: menuInfo.title
183
- }), void 0), badge()]
184
- }, void 0);
185
- }
186
- }
187
77
 
188
- var topRightContent = companyInfoRender ? companyInfoRender() : _jsxs(_Fragment, {
189
- children: [_jsxs("div", Object.assign({
190
- className: "no-address-info"
191
- }, {
192
- children: [tel && _jsxs("div", Object.assign({
193
- className: "info-container",
194
- style: {
195
- alignItems: 'center'
196
- }
197
- }, {
198
- children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
199
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
200
- level: "body2",
201
- className: "info-span"
202
- }, {
203
- children: tel
204
- }), void 0) : tel
205
- }, void 0)]
206
- }), void 0), email && _jsxs("div", Object.assign({
207
- className: "info-container",
208
- style: {
209
- alignItems: 'center'
210
- }
211
- }, {
212
- children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
213
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
214
- level: "body2",
215
- className: "info-span"
216
- }, {
217
- children: email
218
- }), void 0) : email
219
- }, void 0)]
220
- }), void 0), workTime && _jsxs("div", Object.assign({
221
- className: "info-container"
222
- }, {
223
- children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
224
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
225
- level: "body2",
226
- className: "info-span"
227
- }, {
228
- children: workTime
229
- }), void 0) : workTime
230
- }, void 0)]
231
- }), void 0)]
232
- }), void 0), address && _jsxs(_Space, Object.assign({
233
- size: 16,
234
- align: "start"
235
- }, {
236
- children: [_jsx(LocationOutlined, {
237
- style: {
238
- fontSize: 24
239
- }
240
- }, void 0), _jsx("div", {
241
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
242
- level: "body2",
243
- className: "info-span"
244
- }, {
245
- children: address
246
- }), void 0) : address
247
- }, void 0)]
248
- }), void 0)]
249
- }, void 0);
78
+ return dom !== false;
79
+ });
80
+ break;
81
+
82
+ default:
83
+ contentDom = children;
84
+ }
250
85
 
251
86
  if (!md) {
252
87
  return _jsxs("div", Object.assign({
253
88
  style: style,
254
89
  className: classnames(layoutContainerClass, className)
255
90
  }, {
256
- children: [_jsxs("div", Object.assign({
257
- className: classnames({
258
- 'igloo-layout-header': true,
259
- 'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
260
- })
261
- }, {
262
- children: [_jsx("div", {
263
- className: "igloo-logo"
264
- }, void 0), dropMenuConfig && _jsx(HomeMenu, Object.assign({
265
- userAvatar: userAvatar,
266
- userName: userName
267
- }, dropMenuConfig), void 0)]
268
- }), void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, Object.assign({
269
- className: "igloo-layout-menu"
270
- }, {
271
- children: menus.map(function (menu) {
272
- var span = 24 / menus.length;
273
- return _jsx(_Col, Object.assign({
274
- span: span,
275
- className: classnames('menu-item'),
276
- onClick: function onClick() {
277
- onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
278
- }
279
- }, {
280
- children: _jsx("div", Object.assign({
281
- style: {
282
- display: 'flex',
283
- alignItems: 'flex-start'
284
- }
285
- }, {
286
- children: getMenuDom(selectedMenu || activeMenu, menu)
287
- }), void 0)
288
- }), menu.key);
289
- })
290
- }), void 0), _jsx("div", Object.assign({
91
+ children: [headerConfig && _jsx(LayoutHeader, Object.assign({}, headerConfig), void 0), headerDom, _jsx("div", Object.assign({
291
92
  className: "igloo-layout-center"
292
93
  }, {
293
94
  children: _jsx("div", Object.assign({
294
95
  className: "igloo-layout-content"
295
96
  }, {
296
- children: children
97
+ children: contentDom
297
98
  }), void 0)
298
- }), void 0), _jsx("div", Object.assign({
299
- className: "igloo-layout-footer"
300
- }, {
301
- children: _jsxs("div", Object.assign({
302
- className: "footer-content"
303
- }, {
304
- children: [_jsx("div", {
305
- className: "igloo-logo"
306
- }, void 0), _jsxs("div", Object.assign({
307
- className: "compony-info"
308
- }, {
309
- children: [tel && _jsxs("div", Object.assign({
310
- className: "info-item"
311
- }, {
312
- children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
313
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
314
- level: "body3",
315
- className: "info-span"
316
- }, {
317
- children: tel
318
- }), void 0) : tel
319
- }, void 0)]
320
- }), void 0), email && _jsxs("div", Object.assign({
321
- className: "info-item"
322
- }, {
323
- children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
324
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
325
- level: "body3",
326
- className: "info-span"
327
- }, {
328
- children: email
329
- }), void 0) : email
330
- }, void 0)]
331
- }), void 0), workTime && _jsxs("div", Object.assign({
332
- className: "info-item"
333
- }, {
334
- children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
335
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
336
- level: "body3",
337
- className: "info-span"
338
- }, {
339
- children: workTime
340
- }), void 0) : workTime
341
- }, void 0)]
342
- }), void 0), address && _jsxs("div", Object.assign({
343
- className: "info-item"
344
- }, {
345
- children: [_jsx(LocationOutlined, {
346
- style: {
347
- fontSize: 24
348
- }
349
- }, void 0), _jsx("div", {
350
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
351
- level: "body3",
352
- className: "info-span"
353
- }, {
354
- children: address
355
- }), void 0) : address
356
- }, void 0)]
357
- }), void 0)]
358
- }), void 0), _jsxs("div", Object.assign({
359
- className: "footer-bottom"
360
- }, {
361
- children: [_jsx("div", {
362
- children: copyRightRender ? copyRightRender(_jsxs("div", {
363
- children: [_jsxs("div", {
364
- children: ["\xA9 $", new Date().getFullYear(), " Powered by Axinan Pte Ltd."]
365
- }, void 0), _jsx("div", {
366
- children: "All Rights Reserved."
367
- }, void 0)]
368
- }, void 0)) : _jsxs(Typography, Object.assign({
369
- level: "body3"
370
- }, {
371
- children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd."), _jsx("div", {
372
- children: "All Rights Reserved."
373
- }, void 0)]
374
- }), void 0)
375
- }, void 0), _jsx("div", {
376
- children: _jsxs(Typography, Object.assign({
377
- level: "body3"
378
- }, {
379
- children: [_jsx(Button, Object.assign({
380
- type: "text",
381
- onClick: function onClick() {
382
- return window.open('https://contents.iglooinsure.com');
383
- }
384
- }, {
385
- children: _jsx(Typography, Object.assign({
386
- level: "body3"
387
- }, {
388
- children: "Privacy Policy"
389
- }), void 0)
390
- }), void 0), ' ', _jsx("span", Object.assign({
391
- style: {
392
- margin: '0px 16px'
393
- }
394
- }, {
395
- children: "|"
396
- }), void 0), " Terms of Service"]
397
- }), void 0)
398
- }, void 0)]
399
- }), void 0)]
400
- }), void 0)
401
- }), void 0)]
99
+ }), void 0), footerConfig && _jsx(LayoutFooter, Object.assign({}, footerConfig), void 0), footerDom]
402
100
  }), void 0);
403
101
  }
404
102
 
@@ -406,109 +104,18 @@ var Layout = function Layout(props) {
406
104
  style: style,
407
105
  className: classnames(layoutContainerClass, className)
408
106
  }, {
409
- children: [_jsx("div", Object.assign({
410
- className: classnames({
411
- 'igloo-layout-header': true,
412
- 'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
413
- })
414
- }, {
415
- children: _jsxs("div", Object.assign({
416
- className: "header-content"
417
- }, {
418
- children: [_jsxs("div", Object.assign({
419
- className: "header-left"
420
- }, {
421
- children: [_jsx("div", {
422
- className: "igloo-logo"
423
- }, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, {
424
- children: menus.map(function (menu) {
425
- return _jsx(_Col, Object.assign({
426
- className: classnames('menu-item'),
427
- onClick: function onClick() {
428
- onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
429
- }
430
- }, {
431
- children: getMenuDom(selectedMenu || activeMenu, menu)
432
- }), menu.key);
433
- })
434
- }, void 0)]
435
- }), void 0), dropMenuConfig && _jsxs(_Space, Object.assign({
436
- size: 8
437
- }, {
438
- children: [_jsx(_Avatar, {
439
- size: 32,
440
- src: userAvatar
441
- }, void 0), _jsx(Typography, Object.assign({
442
- level: "body1",
443
- style: {
444
- color: '#666666'
445
- }
446
- }, {
447
- children: userName
448
- }), void 0), dropMenuConfig && _jsx(HomeMenu, Object.assign({}, dropMenuConfig), void 0)]
449
- }), void 0)]
450
- }), void 0)
451
- }), void 0), _jsx("div", Object.assign({
107
+ children: [headerConfig && _jsx(LayoutHeader, Object.assign({}, headerConfig), void 0), headerDom, _jsx("div", Object.assign({
452
108
  className: "igloo-layout-center"
453
109
  }, {
454
110
  children: _jsx("div", Object.assign({
455
111
  className: "igloo-layout-content"
456
112
  }, {
457
- children: children
458
- }), void 0)
459
- }), void 0), _jsx("div", Object.assign({
460
- className: "igloo-layout-footer"
461
- }, {
462
- children: _jsxs("div", Object.assign({
463
- className: "footer-content"
464
- }, {
465
- children: [_jsxs(_Space, Object.assign({
466
- size: 32,
467
- align: "start",
468
- className: "footer-top"
469
- }, {
470
- children: [_jsx("div", Object.assign({
471
- className: "top-left"
472
- }, {
473
- children: _jsx("div", {
474
- className: "igloo-logo"
475
- }, void 0)
476
- }), void 0), topRightContent]
477
- }), void 0), _jsx("div", {
478
- className: "footer-divider"
479
- }, void 0), _jsxs("div", Object.assign({
480
- className: "footer-bottom"
481
- }, {
482
- children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")) : _jsx(Typography, Object.assign({
483
- level: "body3"
484
- }, {
485
- children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")
486
- }), void 0), _jsxs(Typography, Object.assign({
487
- level: "body3"
488
- }, {
489
- children: [_jsx(Button, Object.assign({
490
- type: "text",
491
- onClick: function onClick() {
492
- return window.open('https://contents.iglooinsure.com');
493
- }
494
- }, {
495
- children: _jsx(Typography, Object.assign({
496
- level: "body3"
497
- }, {
498
- children: "Privacy Policy"
499
- }), void 0)
500
- }), void 0), ' ', _jsx("span", Object.assign({
501
- style: {
502
- margin: '0px 16px'
503
- }
504
- }, {
505
- children: "|"
506
- }), void 0), " Terms of Service"]
507
- }), void 0)]
508
- }), void 0)]
113
+ children: contentDom
509
114
  }), void 0)
510
- }), void 0)]
115
+ }), void 0), footerConfig && _jsx(LayoutFooter, Object.assign({}, footerConfig), void 0), footerDom]
511
116
  }), void 0);
512
117
  };
513
118
 
119
+ Layout.Header = LayoutHeader;
120
+ Layout.Footer = LayoutFooter;
514
121
  export default Layout;