{"ast":null,"code":"import React from 'react';\nimport { withRouter } from 'next/router';\nimport LayoutWrapper from '@flui/ui-components/src/UIView/Antd/Layout/Layout';\nimport Header from './Header/Header';\nimport Footer from './Footer/Footer';\nimport LayoutProvider from '../../context/LayoutProvider';\nimport { LISTING_POSTS_PAGE, LOGIN_PAGE, REGISTRATION_PAGE, AGENT_PROFILE_PAGE, AGENT_ACCOUNT_SETTINGS_PAGE, ADD_HOTEL_PAGE, PRICING_PLAN_PAGE, SINGLE_POST_PAGE, PRIVACY_PAGE, CHANGE_PASSWORD_PAGE, FORGET_PASSWORD_PAGE, AGENT_IMAGE_EDIT_PAGE, AGENT_PASSWORD_CHANGE_PAGE } from '../../settings/constant';\nconst {\n  Content\n} = LayoutWrapper;\n\nconst Layout = ({\n  children,\n  router,\n  user,\n  isLoggedIn\n}) => {\n  return React.createElement(LayoutWrapper, null, React.createElement(LayoutProvider, null, router.pathname === LOGIN_PAGE || router.pathname === CHANGE_PASSWORD_PAGE || router.pathname === FORGET_PASSWORD_PAGE || router.pathname === REGISTRATION_PAGE ? React.createElement(Content, null, children) : React.createElement(React.Fragment, null, React.createElement(Header, {\n    user: user,\n    isLoggedIn: isLoggedIn\n  }), React.createElement(Content, null, children), router.pathname === LISTING_POSTS_PAGE || router.pathname === PRICING_PLAN_PAGE || router.pathname === ADD_HOTEL_PAGE || router.pathname === AGENT_PROFILE_PAGE || router.pathname === CHANGE_PASSWORD_PAGE || router.pathname === FORGET_PASSWORD_PAGE || router.pathname === PRIVACY_PAGE || router.pathname === `${AGENT_ACCOUNT_SETTINGS_PAGE + AGENT_IMAGE_EDIT_PAGE}` || router.pathname === `${AGENT_ACCOUNT_SETTINGS_PAGE + AGENT_PASSWORD_CHANGE_PAGE}` || router.pathname === AGENT_ACCOUNT_SETTINGS_PAGE ? React.createElement(\"div\", {\n    style: {\n      height: '33px'\n    }\n  }) : React.createElement(Footer, {\n    path: router.pathname === SINGLE_POST_PAGE\n  }))));\n};\n\nexport default withRouter(Layout);","map":null,"metadata":{},"sourceType":"module"}