text: import Home from "./pages/Home";
  import NeedHelp from "./pages/NeedHelp";
  import OfferHelp from "./pages/OfferHelp";
  import AboutUs from "./pages/AboutUs";
  import CreateOrganisationProfile from "./pages/CreateOrganisationProfile";
  import OrganisationProfile from "./pages/OrganisationProfile";
  import EditOrganisationProfile from "./pages/EditOrganisationProfile";
  import EditOrganisationAccount from "./pages/EditOrganisationAccount";
  import EditOrganisationNotifications from "./pages/EditOrganisationNotifications";
  import Medical from "./pages/Medical";
  import SymptomsCheck from "./pages/SymptomsCheck";
  import TermsConditions from "./pages/TermsConditions";
  import PrivacyPolicy from "./pages/PrivacyPolicy";
  import CookiesPolicy from "./pages/CookiesPolicy";
  import Profile from "./pages/Profile";
  import EditProfile from "./pages/EditProfile";
  import EditAccount from "./pages/EditAccount";
  import EditNotifications from "./pages/EditNotifications";
  import NotFoundPage from "./pages/NotFoundPage";
  import Feed from "./containers/FeedContainer";
  import DashBoard from "./pages/DashBoard";
  import Login from "./pages/Login";
  import VerifyEmail from "./pages/VerifyEmail";
  import NearestHospital from "./pages/NearestHospital";
  import PostPage from "./pages/PostPage";
  import ProfileCompleted from "./pages/ProfileCompleted";
  import CreateUserProfile from "./pages/CreateUserProfile";
  import Logout from "./pages/Logout";
  import Faq from "./pages/Faq";
  import Inbox from "./pages/Inbox";
  import ToggleQAMode from "./pages/ToggleQAMode.js";
  import Unsubscribe from "./pages/Unsubscribe.js";
  import EditSecurity from "./pages/EditSecurity";
  
  import { SCOPES } from "constants/permissions";
  
  const routes = [
    {
      path: "/",
      component: Home,
      exact: true,
    },
    {
      path: "/auth/login",
      component: Login,
      layout: "logo",
      props: {
        isLoginForm: true,
        notLoggedInOnly: true,
        forgotPassword: false,
      },
    },
    {
      path: "/auth/signup",
      component: Login,
      layout: "logo",
      props: {
        isLoginForm: false,
        notLoggedInOnly: true,
        forgotPassword: false,
      },
    },
    {
      path: "/auth/forgot-password",
      component: Login,
      layout: "logo",
      props: {
        isLoginForm: false,
        forgotPassword: true,
      },
    },
    {
      path: "/auth/logout",
      component: Logout,
    },
    {
      path: "/auth/check-email",
      component: VerifyEmail,
      layout: "logo",
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/need-help",
      component: NeedHelp,
    },
    {
      path: "/offer-help",
      component: OfferHelp,
    },
    {
      path: "/about-us",
      component: AboutUs,
    },
    {
      path: "/create-organisation-profile",
      component: CreateOrganisationProfile,
      layout: "logo",
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/create-organisation-complete",
      component: ProfileCompleted,
    },
    {
      path: "/organisation/:id",
      component: OrganisationProfile,
      props: {
        isProfile: true,
      },
    },
    {
      path: "/edit-organisation-account",
      component: EditOrganisationAccount,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-organisation-profile",
      component: EditOrganisationProfile,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-organisation-notifications",
      component: EditOrganisationNotifications,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/medical",
      component: Medical,
    },
    {
      path: "/nearest-hospital",
      component: NearestHospital,
      props: {
        mobiletabs: true,
        tabIndex: 0,
      },
    },
    {
      path: "/find-help",
      component: Feed,
    },
    {
      path: "/symptoms-check",
      component: SymptomsCheck,
      props: {
        mobiletabs: true,
        tabIndex: 1,
      },
    },
    {
      path: "/feed",
      exact: true,
      component: Feed,
      props: {
        mobiletabs: true,
        navSearch: true,
        tabIndex: 2,
      },
    },
    {
      path: "/dashboard",
      exact: true,
      component: DashBoard,
      props: {
        navSearch: true,
        permRequired: true,
        hideFooter: true,
      },
    },
    {
      path: "/feed/:id",
      component: Feed,
      props: {
        mobiletabs: true,
        tabIndex: 2,
      },
    },
    {
      path: "/profile/:id",
      component: Profile,
      props: {
        isProfile: true,
      },
    },
    // todo: maybe move this inside the create-user-profile since it doesn't really need a separate route for a "page"
    {
      path: "/profile-completed",
      component: ProfileCompleted,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-profile",
      component: EditProfile,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-notifications",
      component: EditNotifications,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-account",
      component: EditAccount,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/edit-security",
      component: EditSecurity,
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/post/:postId/",
      component: PostPage,
      props: {
        loggedInOnly: false,
      },
    },
    {
      path: "/create-profile",
      component: CreateUserProfile,
      layout: "navless",
      props: {
        loggedInOnly: true,
      },
    },
    {
      path: "/terms-conditions",
      component: TermsConditions,
    },
    {
      path: "/privacy-policy",
      component: PrivacyPolicy,
    },
    {
      path: "/cookies-policy",
      component: CookiesPolicy,
    },
    {
      path: "/faq",
      component: Faq,
    },
    {
      path: "/inbox",
      component: Inbox,
      props: {
        hideFooter: true,
      },
    },
    {
      path: "/toggleqa",
      component: ToggleQAMode,
    },
    {
      path: "/unsubscribe",
      component: Unsubscribe,
      layout: "logo",
    },
  
    {
      path: "*",
      component: NotFoundPage,
      exact: true,
    },
  ];
  
  export default routes;
  