import React, { PropsWithChildren } from 'react';
interface TrulyProps {
  truly?: boolean;
  falsyRender?: JSX.Element;
}
const Truly: React.FC<PropsWithChildren<TrulyProps>> = (props) => {
  const { truly = true, children, falsyRender } = props;
  if (truly) {
    return <>{children}</>;
  }
  return <>{falsyRender}</>;
};
export default Truly;
