export const Visible = (props: VisibleProps) => { if (!props.if) { return null; } return props.children; }; export interface VisibleProps { if: boolean | undefined; children: JSX.Element; }