-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmappings.ts
75 lines (72 loc) · 2.98 KB
/
mappings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import dynamic from 'next/dynamic';
const pageTopicMap = {
TopicProduct: dynamic(() =>
import('@src/components/features/ctf-components/ctf-product/ctf-product-gql').then(module => module.CtfProductGql),
),
TopicBusinessInfo: dynamic(() =>
import('@src/components/features/ctf-components/ctf-business-info/ctf-business-info-gql').then(
module => module.CtfBusinessInfoGql,
),
),
ComponentProductTable: dynamic(() =>
import('@src/components/features/ctf-components/ctf-product-table/ctf-product-table-gql').then(
module => module.CtfProductTableGql,
),
),
};
export const componentMap = {
ComponentCta: dynamic(() =>
import('@src/components/features/ctf-components/ctf-cta/ctf-cta').then(module => module.CtfCta),
),
ComponentDuplex: dynamic(() =>
import('@src/components/features/ctf-components/ctf-duplex/ctf-duplex').then(module => module.CtfDuplex),
),
ComponentHeroBanner: dynamic(() =>
import('@src/components/features/ctf-components/ctf-hero-banner/ctf-hero-banner').then(module => module.CtfHeroBanner),
),
ComponentInfoBlock: dynamic(() =>
import('@src/components/features/ctf-components/ctf-info-block/ctf-info-block').then(module => module.CtfInfoBlock),
),
ComponentQuote: dynamic(() =>
import('@src/components/features/ctf-components/ctf-quote/ctf-quote').then(module => module.CtfQuote),
),
ComponentTextBlock: dynamic(() =>
import('@src/components/features/ctf-components/ctf-text-block/ctf-text-block').then(module => module.CtfTextBlock),
),
TopicPerson: dynamic(() =>
import('@src/components/features/ctf-components/ctf-person/ctf-person').then(module => module.CtfPerson),
),
};
export const componentGqlMap = {
...pageTopicMap,
ComponentCta: dynamic(() =>
import('@src/components/features/ctf-components/ctf-cta/ctf-cta-gql').then(module => module.CtfCtaGql),
),
ComponentDuplex: dynamic(() =>
import('@src/components/features/ctf-components/ctf-duplex/ctf-duplex-gql').then(module => module.CtfDuplexGql),
),
ComponentHeroBanner: dynamic(() =>
import('@src/components/features/ctf-components/ctf-hero-banner/ctf-hero-banner-gql').then(
module => module.CtfHeroGql,
),
),
ComponentInfoBlock: dynamic(() =>
import('@src/components/features/ctf-components/ctf-info-block/ctf-info-block-gql').then(
module => module.CtfInfoBlockGql,
),
),
ComponentQuote: dynamic(() =>
import('@src/components/features/ctf-components/ctf-quote/ctf-quote-gql').then(module => module.CtfQuoteGql),
),
ComponentTextBlock: dynamic(() =>
import('@src/components/features/ctf-components/ctf-text-block/ctf-text-block-gql').then(
module => module.CtfTextBlockGql,
),
),
TopicPerson: dynamic(() =>
import('@src/components/features/ctf-components/ctf-person/ctf-person-gql').then(module => module.CtfPersonGql),
),
ComponentFooter: dynamic(() =>
import('@src/components/features/ctf-components/ctf-footer/ctf-footer-gql').then(module => module.CtfFooterGql),
),
};