I have created a general purpose module that allows me to pass in a component name through MAT_DIALOG_DATA, which is then instantiated with ComponentFacto
MAT_DIALOG_DATA
ComponentFacto