I\'m trying to passing component as prop with generic type. But it\'s not simple way.
This is what I do:
I created a functional component that get