import ConditionallyRender from '../../common/ConditionallyRender'; import MainLayout from '../MainLayout'; const LayoutPicker = ({ children, location }) => { const standalonePages = () => { const isLoginPage = location.pathname.includes('login'); const isNewUserPage = location.pathname.includes('new-user'); const isChangePasswordPage = location.pathname.includes( 'reset-password' ); const isResetPasswordSuccessPage = location.pathname.includes( 'reset-password-success' ); const isForgottenPasswordPage = location.pathname.includes( 'forgotten-password' ); return ( isLoginPage || isNewUserPage || isChangePasswordPage || isResetPasswordSuccessPage || isForgottenPasswordPage ); }; return ( {children}} /> ); }; export default LayoutPicker;