I\'ve been researching this one but haven\'t found a satisfactory solution to this simple issue: My component takes an object with a type property, and based on that type I wan