score:0

Accepted answer
let Wrapper: React.ReactType = "label";
if (Card) {
  Wrapper = Card;
}

Related Query

More Query from same tag