Function: useModalComponentData()
useModalComponentData(
parentComponentData,modalType):ComponentData
Generates the ComponentData for the modal component.
Parameters
parentComponentData
the modal's parent component.
modalType
string
the modal type.
Returns
the generated ComponentData for the modal component.