import React , { memo , FunctionComponent } from "react" ; interface Props { show ? : boolean ; children : React . ReactNode ; } const Loader = ( { show , children } ) => { if ( show ) { return ( < div className = "loader tab-loader" > < div /> < /div>); } return < > { children } < />; } ; export default memo ( Loader ) ;