| 1 |
import React from "react"; |
| 2 |
import Collapse from "./Collapse"; |
| 3 |
import FinishPanel from "./FinishPanel"; |
| 4 |
import Header from "./Header"; |
| 5 |
import Image from "./Image"; |
| 6 |
import Migration from "./Migration"; |
| 7 |
import PermalinkStracture from "./PermalinkStracture"; |
| 8 |
import VideoPlayer from "./VideoPlayer"; |
| 9 |
import SampleDocsGenerator from "./SampleDocsGenerator"; |
| 10 |
import LayoutCustomizer from "./LayoutCustomizer"; |
| 11 |
|
| 12 |
const Field = (r, type, props) => { |
| 13 |
switch (type) { |
| 14 |
case "header": |
| 15 |
return <Header {...props} />; |
| 16 |
case "migration": |
| 17 |
return <Migration {...props} />; |
| 18 |
case "image": |
| 19 |
return <Image {...props} />; |
| 20 |
case "finish_panel": |
| 21 |
return <FinishPanel {...props} />; |
| 22 |
case "collapse": |
| 23 |
return <Collapse {...props} />; |
| 24 |
case "video-player": |
| 25 |
return <VideoPlayer {...props} />; |
| 26 |
case "permalink_structure": |
| 27 |
return <PermalinkStracture {...props} />; |
| 28 |
case "sample_docs_generator": |
| 29 |
return <SampleDocsGenerator {...props} />; |
| 30 |
case "layout_customizer": |
| 31 |
return <LayoutCustomizer {...props} />; |
| 32 |
default: |
| 33 |
return <></>; |
| 34 |
} |
| 35 |
}; |
| 36 |
|
| 37 |
export default Field; |
| 38 |
|