FlowProps and FlowComponent but couldn't quite get it to work. I think I'm pretty close but I'm not sure how I can allow passing the result of calling <Code /> while also enforcing the children are of type Code.items: (typeof Code)[] for example allows me pass in Code but not <Code />.