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