15 | {title && (
16 |
17 | {title}
18 |
19 | )}
20 | {sections.length > 0 && (
21 |
22 | {sections.map((section, index) => {
23 | const Component = getComponent(section.__metadata.modelName);
24 | if (!Component) {
25 | throw new Error(`no component matching the page section's model name: ${section.__metadata.modelName}`);
26 | }
27 | return (
28 |
34 | );
35 | })}
36 |
37 | )}
38 |
39 |