Factory for creating components from API data.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
ComponentType | keyof MappedComponentTypes | No | The type of component to use |
Name | Type | Optional | Description |
---|---|---|---|
data | (APIModalComponent | APIMessageComponent) & { type: ComponentType;} | No | The API data to transform to a component class |