I\'m trying to define a generic component that gets passed a list of objects containing two keys: component & props. I\'d like to infer the typ
component
props