import * as React from "react"; interface MyProps { condition: boolean, children: any } const If = (props: MyProps) => { return (