import React from 'react';
interface IFContainerProps {
  conditional: boolean;
  thenRender: React.ReactNode;
  elseRender: React.ReactNode;
}
const IFContainer = ({ conditional, thenRender, elseRender = null }: IFContainerProps) => {
  return <>{conditional ? thenRender : elseRender || null}</>;
};
export default IFContainer;
