import {  lazy } from "react"

// import PatientListComponent from '../inside-dashboard/all-patient-list'
import AllSubscriptionCodeComponent from '../inside-dashboard/all-subscription-codes/all-subscription-codes.component'
import AddSubscriptionCodeComponent from '../inside-dashboard/add-subscription-code/add-subscription-code.component'
import AllEducatorsComponent from '../inside-dashboard/all-educators/all-educators.component'
import AllVisitorComponent from '../inside-dashboard/all-visitors/all-visitor.component'
import DietPlanComponent from '../inside-dashboard/diet-plan/diet-plan.component'
import TermsAndConditionWrapperComponent from '../../components/utility/terms_and_conditions/terms_and_conditions.wrapper.component'
// import CaseHistoryViewerComponent from '../inside-dashboard/case-histories/case-history.viewer.component'
// import DailyLogComponent from '../inside-dashboard/daily-logs/daily-logs.component'
import GraphListComponent from '../inside-dashboard/graph-list/graph-list.component'
import LabReportComponent from '../inside-dashboard/lab-reports/lab-reports.component'
import ReportComponent from '../inside-dashboard/reports/report.component'
import UserProfileComponent from '../inside-dashboard/user-profile/user-profile.component'
// import ChangePasswordComponent from '../inside-dashboard/change-password/change-password.component'
// import NotificationDetailComponent from '../inside-dashboard/notification-detail/notification-detail.component'

const PatientListComponent = lazy( () =>  import('../inside-dashboard/all-patient-list'))
const DailyLogComponent = lazy( () =>  import( '../inside-dashboard/daily-logs/daily-logs.component'))
const CaseHistoryViewerComponent = lazy( () =>  import( '../inside-dashboard/case-histories/case-history.viewer.component'))
const NotificationDetailComponent = lazy( () =>  import( '../inside-dashboard/notification-detail/notification-detail.component'))
const ChangePasswordComponent =  lazy( () =>  import('../inside-dashboard/change-password/change-password.component'))
const UserFeedBackComponent = lazy( () =>  import( '../inside-dashboard/user-feedback/user-feedback.component'))

/*

const AllSubscriptionCodeComponent = lazy( () =>  import( '../inside-dashboard/all-subscription-codes/all-subscription-codes.component'))
const AddSubscriptionCodeComponent = lazy( () =>  import( '../inside-dashboard/add-subscription-code/add-subscription-code.component'))
const AllEducatorsComponent = lazy( () =>  import( '../inside-dashboard/all-educators/all-educators.component'))
const AllVisitorComponent = lazy( () =>  import( '../inside-dashboard/all-visitors/all-visitor.component'))
const GraphListComponent = lazy( () =>  import( '../inside-dashboard/graph-list/graph-list.component'))
const LabReportComponent = lazy( () =>  import( '../inside-dashboard/lab-reports/lab-reports.component'))
const ReportComponent = lazy( () =>  import( '../inside-dashboard/reports/report.component'))
const UserProfileComponent = lazy( () =>  import( '../inside-dashboard/user-profile/user-profile.component'))
*/
export const dashboardComponentRoutes = {
    //parent menu links
    SUBSCRIPTION_CODE_LINK: {id: 'SUBSCRIPTION_CODE_LINK', title: ' Subscription '},
    PATIENTS_LINK: {id: 'PATIENTS_LINK', title: ' Patients '},
    EDUCATORS_LINK: {id: 'EDUCATORS_LINK', title: ' Educators '},
    DASHBOARD_LINK: {id: 'DASHBOARD_LINK', title: ' Dashboard '},
    MEDICAL_LOGS_LINK: {id: 'MEDICAL_LOGS_LINK', title: ' Medical Logs '},

    ALL_PATIENTS: {id: 'ALL_PATIENTS', title: 'All Patients', route: 'all_patients', component: <PatientListComponent />},
    CHANGE_PASSWORD: {id: 'CHANGE_PASSWORD', title: 'Change Password', route: 'change_password', component: <ChangePasswordComponent />},
    
    ADD_SUBS_CODE: {id: 'ADD_SUBS_CODE', title: 'Add Subscription Code', route: 'add_subs_code', component: <AddSubscriptionCodeComponent />},
    ALL_EDUCATORS: {id: 'ALL_EDUCATORS', title: 'All Educators', route: 'all_educators',component: <AllEducatorsComponent />},
    ALL_SUBS_CODES: {id: 'ALL_SUBS_CODES', title: 'Subscription Details', route: 'all_subs_codes', component: <AllSubscriptionCodeComponent />},
    ALL_VISITORS: {id: 'ALL_VISITORS', title: 'All Visitors', route: 'all_visitors', paramName:'patientId', enableBack:true, component: <AllVisitorComponent />},
    DIET_PLAN: {id: 'DIET_PLAN', title: 'Prepare Diet Plan', route: 'diet_plan', paramName:'patientId', enableBack:true, component: <DietPlanComponent />},
    CASE_HISTORY: {id: 'CASE_HISTORY', title: 'Case History', route: 'case_history',paramName:'patientId', enableBack:true, component: <CaseHistoryViewerComponent />},
    DAILY_LOGS: {id: 'DAILY_LOGS', title: 'Daily Logs', route: 'daily_logs', paramName:'extraParams', enableBack: true, component: <DailyLogComponent />},
    GRAPH_LIST: {id: 'GRAPH_LIST', title: 'Dashboard', route: 'graph_list', component: <GraphListComponent />},
    LAB_REPORT: {id: 'LAB_REPORT', title: 'Lab Reports', paramName:'patientId',route: 'lab_report', enableBack: true, component: <LabReportComponent />},
    REPORT: {id: 'REPORT', title: 'Reports', route: 'report', component: <ReportComponent />},
    USER_PROFILE: {id: 'USER_PROFILE', title: 'User profile', paramName:'userId', route: 'user_profile', enableBack: true, component: <UserProfileComponent />},
    USER_FEEDBACK: {id: 'USER_FEEDBACK', title: 'User Feedback', route: 'user_feedback', component: <UserFeedBackComponent />},
    USER_TERMS_CONDITIONS: {id: 'USER_TERMS_CONDITIONS', route: 'user_terms_conditions', component: <TermsAndConditionWrapperComponent />},
    NOTIFICATION_DETAIL: {id: 'NOTIFICATION_DETAIL', route: 'notification_detail', paramName:'notificationType', title:'Notifications', component: <NotificationDetailComponent />},
    
}