/**
 * @author : 최정우
 * @since : 2022.09.20
 * @dscription : Application의 Route 정보를 관리하는 Component 입니다.
 */
import React from "react";
//react router 라이브러리 import
import { Routes, Route } from "react-router-dom";

import HouseIcon from "@mui/icons-material/House";
import PersonIcon from "@mui/icons-material/Person";
import Diversity1Icon from "@mui/icons-material/Diversity1";
import DoorFrontIcon from "@mui/icons-material/DoorFront";
import SpeakerPhoneIcon from "@mui/icons-material/SpeakerPhone";
import SettingsIcon from "@mui/icons-material/Settings";
import CallIcon from '@mui/icons-material/Call';
import ConstructionIcon from '@mui/icons-material/Construction';
import EqualizerIcon from '@mui/icons-material/Equalizer';
import ApartmentIcon from '@mui/icons-material/Apartment';

import Test from "./Test/Test.jsx";
import Main_government from "./main/Main_government.jsx";
import Main_guardian from "./main/Main_guardian.jsx";
import Main_agency from "./main/Main_agency.jsx";
import Main from "./main/Main.jsx";
import SeniorSelect from "./senior_management/SeniorSelect.jsx";
import SeniorInsert from "./senior_management/SeniorInsert.jsx";
import SeniorSelectOne from "./senior_management/SeniorSelectOne.jsx";
import MedicineCareSelect from "./healthcare/medicinecare/MedicineCareSelect.jsx";
import MedicineCareSelectOne from "./healthcare/medicinecare/MedicineCareSelectOne.jsx";
import TemperatureManagementSelect from "./healthcare/temperature/TemperatureManagementSelect.jsx";
import TemperatureManagementSelectOne from "./healthcare/temperature/TemperatureManagementSelectOne.jsx";
import Questionnaire from "./healthcare/Questionnaire.jsx";
import MedicineStatistics from "./healthcare/statistics/MedicineStatistics.jsx";
import GuardianStatistics from "./healthcare/statistics/GuardianStatistics.jsx";
import VisitSelect from "./visit/visit/VisitSelect.jsx";
import VisitInsert from "./visit/visit/VisitInsert.jsx";
import VisitSelectOne from "./visit/visit/VisitSelectOne.jsx";
import EquipmentRentalInsert from "./equipment/EquipmentRentalInsert.jsx";
import EquipmentManagementSelect from "./equipment/EquipmentManagementSelect.jsx";
import EquipmentManagementSelectOne from "./equipment/EquipmentManagementSelectOne.jsx";
import UserAuthoriySelect from "./user_management/UserAuthoriySelect.jsx";
import UserAuthoriySelect_agency from "./user_management/UserAuthoriySelect_agency.jsx";
import MyInfoUpdate from "./authority/MyInfoUpdate.jsx";
import QandASelect from "./callcenter/QandASelect.jsx";
import QandAConfirm from "./callcenter/QandAConfirm.jsx";
import EquipmentManagementInsert from "./equipment/EquipmentManagementInsert.jsx";
import EquipmentManagementSelectAdd from "./equipment/EquipmentManagementSelectAdd.jsx";
import RiskSet from "./setting/RiskSet.jsx";
import QandAInsert from "./callcenter/QandAInsert.jsx";
import QandA_agency from "./callcenter/QandA_agency.jsx";
import UserSelectOk from "./user_management/UserSelectOk.jsx";
import AuthorityManagement from "./setting/AuthorityManagement.jsx";
import AgencyInsert from "./user_management/AgencyInsert.jsx";
import AgencySelect from "./user_management/AgencySelect.jsx";
import ProtectorSelect from "./user_management/ProtectorSelect.jsx";

import MedicineCareSelect_government from "./healthcare/medicinecare/MedicineCareSelect_government.jsx";
import TemperatureManagementSelect_government from "./healthcare/temperature/TemperatureManagementSelect_government.jsx";
import Questionnaire_government from "./healthcare/Questionnaire_government.jsx";
import VisitSelect_government from "./visit/visit/VisitSelect_government.jsx";
import QandA_government from "./callcenter/QandA_government.jsx";
import EquipmentInquiry_admin from "./equipment/EquipmentInquiry_admin.jsx";
import EquipmentManagementSelect_agency from "./equipment/EquipmentManagementSelect_agency.jsx";

const AllAppMenuItems = [
  {
    title: "올잇메디",
    path: "/Main",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
    childrens: [
      {
        title: "Home",
        path: "/Main",
        icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
      },
      {
        title: "사용자 관리",
        path: "/UserAuthoriySelect",
        icon: (
          <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),
      },
      {
        title: "대상자 건강 관리",
        // path: "/TemperatureManagementSelect",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "장비 조회",
        path: "/EquipmentManagementSelect",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
      {
        title: "장비 문의 관리",
        path: "/QandASelect",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
    ],
  },
  {
    title: "관리기관",
    path: "/Main_government",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
    childrens: [
      {
        title: "Home",
        path: "/Main_government",
        icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
      },
      {
        title: "기관 조회",
        path: "/AgencySelect",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),
      },
      {
        title: "사용자 계정 승인",
        path: "/UserSelectOk",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),   
      },
      {
        title: "복약 관리",
        path: "/MedicineCareSelect_government",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "댁내 온도 관리",
        path: "/TemperatureManagementSelect_government",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "진료 관리",
        path: "/Questionnaire_government",
        icon: (
          <DoorFrontIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "방문 관리",
        path: "/VisitSelect_government",
        icon: (
          <DoorFrontIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),
      },
      {
        title: "Q&A 관리",
        path: "/QandA_government",
        icon: (
          <SpeakerPhoneIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
      {
        title: "위험 기준 관리",
        path: "/RiskSet",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
      {
        title: "사용자 권한 관리",
        path: "/AuthorityManagement",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
    ],
  },
  {
    title: "시행기관",
    path: "/Main_agency",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
    childrens: [
      {
        title: "Home",
        path: "/Main_agency",
        icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
      },
      {
        title: "대상자 관리",
        path: "/UserAuthoriySelect_admin",
        icon: (
          <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),
      },
      {
        title: "복약 관리",
        path: "/MedicineCareSelect",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "댁내 온도 관리",
        path: "/TemperatureManagementSelect",
        icon: (
          <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "진료 관리",
        path: "/Questionnaire",
        icon: (
          <DoorFrontIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ), 
      },
      {
        title: "방문 관리",
        path: "/VisitSelect",
        icon: (
          <DoorFrontIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
        ),
      },
      {
        title: "Q&A 관리",
        path: "/QandASelect",
        icon: (
          <SpeakerPhoneIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
      {
        title: "장비 대여 관리",
        path: "/EquipmentManagementSelect_agency",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
      {
        title: "장비 문의",
        path: "/EquipmentInquiry",
        icon: (
          <SettingsIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
    ],
  },
  {
    title: "보호자",
    path: "/Main_guardian",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
    childrens: [
      {
        title: "Home",
        path: "/Main_guardian",
        icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
      },
      {
        title: "통계 데이터",
        path: "/GuardianStatistics",
        icon: <EqualizerIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
      }, 
      {
        title: "Q&A",
        path: "/QandA",
        icon: (
          <SpeakerPhoneIcon
            sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
          />
        ),
      },
    ],
  },
];

function AllAppRoute() {
  return (
      <Routes>
        <Route path="/Test" element={<Test />}></Route>
        <Route path="/Main" element={<Main />}></Route>
        <Route path="/Main_government" element={<Main_government />}></Route>
        <Route path="/Main_guardian" element={<Main_guardian />}></Route>
        <Route path="/Main_agency" element={<Main_agency />}></Route>
        <Route path="/SeniorSelect" element={<SeniorSelect />}></Route>
        <Route path="/SeniorInsert" element={<SeniorInsert />}></Route>
        <Route path="/SeniorSelectOne" element={<SeniorSelectOne />}></Route>
        <Route
          path="/MedicineCareSelect"
          element={<MedicineCareSelect />}
        ></Route>
        <Route
          path="/MedicineCareSelectOne"
          element={<MedicineCareSelectOne />}
        ></Route>
        <Route
          path="/TemperatureManagementSelect"
          element={<TemperatureManagementSelect />}
        ></Route>
        <Route
          path="/TemperatureManagementSelectOne"
          element={<TemperatureManagementSelectOne />}
        ></Route>
        <Route
          path="/MedicineStatistics"
          element={<MedicineStatistics />}
        ></Route>
        <Route path="/VisitInsert" element={<VisitInsert />}></Route>
        <Route path="/VisitSelect" element={<VisitSelect />}></Route>
        <Route path="/VisitSelectOne" element={<VisitSelectOne />}></Route>
        <Route
          path="/EquipmentRentalInsert"
          element={<EquipmentRentalInsert />}
        ></Route>
        <Route
          path="/EquipmentManagementSelect"
          element={<EquipmentManagementSelect />}
        ></Route>
        <Route
          path="/EquipmentManagementSelectOne"
          element={<EquipmentManagementSelectOne />}
        ></Route>
        <Route
          path="/UserAuthoriySelect"
          element={<UserAuthoriySelect />}
        ></Route>
        <Route path="/MyInfoUpdate" element={<MyInfoUpdate />}></Route>
        <Route path="/QandAInsert" element={<QandAInsert />}></Route>
        <Route path="/CallSelectOne" element={<CallSelectOne />}></Route>
        <Route path="/QandAInquiry" element={<QandAInquiry />}></Route>
        <Route path="/EquipmentManagementSelectAdd" element={<EquipmentManagementSelectAdd />}></Route>
        <Route path="/RiskSet" element={<RiskSet />}></Route>
        <Route path="/AuthorityManagement" element={<AuthorityManagement />}></Route>
        <Route path="/UserAuthoriySelect_agency" element={<UserAuthoriySelect_agency />}></Route>
        <Route path="/QandA_agency" element={<QandA_agency />}></Route>
        <Route path="/QandASelect" element={<QandASelect />}></Route>
        <Route path="/UserSelectOk" element={<UserSelectOk />}></Route>
        <Route path="/AuthorityManagement" element={<AuthorityManagement />}></Route>
        <Route path="/AgencyInsert" element={<AgencyInsert />}></Route>
        <Route path="/AgencySelect" element={<AgencySelect />}></Route>
        <Route path="/ProtectorSelect" element={<ProtectorSelect />}></Route>
        <Route path="/Questionnaire" element={<Questionnaire />}></Route>
        <Route path="/GuardianStatistics" element={<GuardianStatistics />}></Route>

        <Route path="/MedicineCareSelect_government" element={<MedicineCareSelect_government />}></Route>
        <Route path="/TemperatureManagementSelect_government" element={<TemperatureManagementSelect_government />}></Route>
        <Route path="/Questionnaire_government" element={<Questionnaire_government />}></Route>
        <Route path="/VisitSelect_government" element={<VisitSelect_government />}></Route>
        <Route path="/QandA_government" element={<QandA_government />}></Route>
        <Route path="/QandAConfirm" element={<QandAConfirm />}></Route>
      </Routes>
  );
}



const AdminAppMenuItems = [
  {
    title: "Home(올잇메디)",
    path: "/Main",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
  },
  {
    title: "사용자 관리",
    path: "/UserAuthoriySelect",
    icon: (
      <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
  },
  // {
  //   title: "대상자 관리",
  //   path: "/UserAuthoriySelect_admin",
  //   icon: (
  //     <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
  //   ),
  // },
  // {
  //   title: "사용자 계정 승인",
  //   path: "/UserSelectOk",
  //   icon: (
  //     <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
  //   ),
  // },
  // {
  //   title: "건강 관리",
  //   prefix: "/Medicine",
  //   icon: (
  //     <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
  //   ),
  //   childrens: [
  //     {
  //       title: "복약 관리",
  //       path: "/MedicineCareSelect",
  //     },
  //     {
  //       title: "댁내 온도 관리",
  //       path: "/TemperatureManagementSelect",
  //     },
  //     {
  //       title: "문진표 작성",
  //       path: "/TemperatureManagementSelect",
  //     },
  //   ],
  // },

  // {
  //   title: "방문 관리",
  //   prefix: "/Visit",
  //   icon: (
  //     <DoorFrontIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
  //   ),
  //   childrens: [
  //     {
  //       title: "방문 관리",
  //       path: "/VisitSelect",
  //     },
  //   ],
  // },
  // {
  //   title: "장비 관리",    
  //   icon: (
  //     <SettingsIcon
  //       sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
  //     />
  //   ),
  //   childrens: [
  //     {
  //       title: "장비 조회",
  //       path: "/EquipmentManagementSelect",
  //     },
  //     {
  //       title: "장비 문의 요청",
  //       path: "/EquipmentInquiry",
  //     },
  //     // {
  //     //   title: "장비 추가 요청",
  //     //   path: "/EquipmentManagementSelectAdd",
  //     // },
  //   ],
  // },    
  {
    title: "문의게시판",
    path: "/QandA",
    icon: (
       <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
     ),
     childrens: [
           {
            title: "복약 관리",
        path: "/MedicineCareSelect",
          },
          {
            title: "댁내 온도 관리",
        path: "/TemperatureManagementSelect",
          },
          {
            title: "진료 관리",
        path: "/Questionnaire",
          },
          {
            title: "방문 관리",
        path: "/VisitSelect",
          },
        ],
   },
   {
      title: "장비 관리",    
      icon: (
        <ConstructionIcon
          sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
        />
      ),
      childrens: [
        {
          title: "장비 조회",
          path: "/EquipmentManagementSelect",
        },
        {
          title: "장비 문의 관리",
        path: "/QandASelect",
        },
      ],
    },  
 
];
function AdminAppRoute() {
  return (
    <Routes>
      <Route path="/Test" element={<Test />}></Route>
        <Route path="/Main" element={<Main />}></Route>
        <Route
          path="/EquipmentRentalInsert"
          element={<EquipmentRentalInsert />}
        ></Route>
        <Route
          path="/EquipmentManagementInsert"
          element={<EquipmentManagementInsert />}
        ></Route>
        <Route
          path="/EquipmentManagementSelect"
          element={<EquipmentManagementSelect />}
        ></Route>
          <Route
            path="/EquipmentManagementSelectOne"
            element={<EquipmentManagementSelectOne />}
          ></Route>        
        <Route
          path="/MedicineCareSelect"
          element={<MedicineCareSelect />}
        ></Route>
        <Route
          path="/MedicineCareSelectOne"
          element={<MedicineCareSelectOne />}
        ></Route>
        <Route
          path="/TemperatureManagementSelectOne"
          element={<TemperatureManagementSelectOne />}
        ></Route>
        <Route
          path="/TemperatureManagementSelect"
          element={<TemperatureManagementSelect />}
        ></Route>
        <Route
          path="/VisitSelect"
          element={<VisitSelect />}
        ></Route>
        <Route
          path="/VisitSelectOne"
          element={<VisitSelectOne />}
        ></Route>
        <Route
          path="/Questionnaire"
          element={<Questionnaire />}
        ></Route>
        <Route path="/QandAInsert" element={<QandAInsert />}></Route>
        <Route path="/QandASelect" element={<QandASelect />}></Route>
        <Route path="/EquipmentManagementSelectAdd" element={<EquipmentManagementSelectAdd />}></Route>
        <Route path="/UserAuthoriySelect" element={<UserAuthoriySelect />}></Route>
        <Route path="/QandAConfirm" element={<QandAConfirm />}></Route>
    </Routes>
  );
}


const GovernmentAppMenuItems = [
   {
    title: "Home",
    path: "/Main_government",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
  },
  {
    title: "기관 관리",
    icon: (
      <ApartmentIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
    childrens: [
      {
        title: "기관 조회",
        path: "/AgencySelect",        
      },
      {
        title: "사용자 계정 승인",
        path: "/UserSelectOk",
      },
    ],
  },
  {
    title: "대상자 관리",
    path: "/UserAuthoriySelect_admin",
    icon: (
      <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
  },
  {
    title: "사용자 계정 승인",
    path: "/UserSelectOk",    
  },
  {
    title: "건강 관리",
    prefix: "/Medicine",
    icon: (
      <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
    childrens:[
      {
        title: "복약 관리",
        path: "/MedicineCareSelect",      
      },
      {
        title: "댁내 온도 관리",
        path: "/TemperatureManagementSelect",      
      },
      {
        title: "진료 관리",
        path: "/Questionnaire",      
      },
      {
        title: "방문 관리",
        path: "/VisitSelect",     
      },
    ]
  },
  {
    title: "문의 현황 관리",
    path: "/QandA",
    icon: (
      <SpeakerPhoneIcon
        sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
      />
    ),
  },
  {
    title: "설정 관리",
    prefix: "/Visit",
    icon: (
      <SettingsIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
    childrens: [
      {
        title: "위험 기준 관리",
        path: "/RiskSet",
      },
      {
        title: "사용자 권한 관리",
        path: "/AuthorityManagement",
      },
    ],
  },
];
function GovernmentAppRoute() {
  return (
    <Routes>
      <Route path="/Test" element={<Test />}></Route>
      <Route path="/Main_government" element={<Main_government />}></Route>
      <Route path="/AgencySelect" element={<AgencySelect />}></Route>
      <Route path="/UserSelectOk" element={<UserSelectOk />}></Route>
      <Route
        path="/MedicineCareSelect"
        element={<MedicineCareSelect />}
      ></Route>
      <Route
        path="/MedicineCareSelectOne"
        element={<MedicineCareSelectOne />}
      ></Route>
      <Route
        path="/TemperatureManagementSelect"
        element={<TemperatureManagementSelect />}
      ></Route>
      <Route
        path="/TemperatureManagementSelectOne"
        element={<TemperatureManagementSelectOne />}
      ></Route>
      <Route
        path="/MedicineStatistics"
        element={<MedicineStatistics />}
      ></Route>
      <Route path="/VisitInsert" element={<VisitInsert />}></Route>
      <Route path="/VisitSelect" element={<VisitSelect />}></Route>
      <Route path="/VisitSelectOne" element={<VisitSelectOne />}></Route>      
      <Route
        path="/UserAuthoriySelect"
        element={<UserAuthoriySelect />}
      ></Route>
      <Route path="/RiskSet" element={<RiskSet />}></Route>
      <Route path="/AuthorityManagement" element={<AuthorityManagement />}></Route>
    </Routes>
  );
}
const AgencyAppMenuItems = [
   {
    title: "Home",
    path: "/Main_agency",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
  },
  {
    title: "시니어 관리",
    path: "/UserAuthoriySelect_agency",
    icon: (
      <PersonIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
  },
  {
    title: "시니어 건강 관리",
    icon: (
      <Diversity1Icon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />
    ),
    childrens:[
      {
        title: "복약 관리",
        path: "/MedicineCareSelect",      
      },
      {
        title: "댁내 온도 관리",
        path: "/TemperatureManagementSelect",      
      },
      {
        title: "진료 관리",
        path: "/Questionnaire",      
      },
      {
        title: "방문 관리",
        path: "/VisitSelect",     
      },
    ]
  },
  {
    title: "장비 대여 관리",
    path: "/EquipmentInquiry",
    icon: (
      <ConstructionIcon
        sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
      />
    ),
  },
  {
    title: "문의게시판",
    path: "/EquipmentInquiry",
    icon: (
      <SpeakerPhoneIcon
        sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }}
      />
    ),
  },
];
function AgencyAppRoute() {
  return (
    <Routes>
      <Route path="/Test" element={<Test />}></Route>
      <Route path="/Main_agency" element={<Main_agency />}></Route>
      <Route path="/UserAuthoriySelect_agency" element={<UserAuthoriySelect_agency />}></Route>
      <Route path="/SeniorInsert" element={<SeniorInsert />}></Route>
      <Route path="/SeniorSelectOne" element={<SeniorSelectOne />}></Route>
      <Route
        path="/MedicineCareSelect"
        element={<MedicineCareSelect />}
      ></Route>
      <Route
        path="/MedicineCareSelectOne"
        element={<MedicineCareSelectOne />}
      ></Route>
      <Route
        path="/TemperatureManagementSelect"
        element={<TemperatureManagementSelect />}
      ></Route>
      <Route
        path="/TemperatureManagementSelectOne"
        element={<TemperatureManagementSelectOne />}
      ></Route>
      <Route path="/VisitInsert" element={<VisitInsert />}></Route>
      <Route path="/VisitSelect" element={<VisitSelect />}></Route>
      <Route path="/VisitSelectOne" element={<VisitSelectOne />}></Route>
      <Route path="/Questionnaire" element={<Questionnaire />}></Route>
      <Route
        path="/EquipmentRentalInsert"
        element={<EquipmentRentalInsert />}
      ></Route>
      <Route
        path="/EquipmentManagementSelect"
        element={<EquipmentManagementSelect />}
      ></Route>
      <Route
        path="/EquipmentManagementSelectOne"
        element={<EquipmentManagementSelectOne />}
      ></Route>
      <Route
        path="/EquipmentInquiry"
        element={<EquipmentInquiry />}
      ></Route>      
    </Routes>
  );
}
const GuardianAppMenuItems = [
   {
    title: "Home",
    path: "/Main_guardian",
    icon: <HouseIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
  },
  {
    title: "그래프로 보기",
    path: "/GuardianStatistics",
    icon: <EqualizerIcon sx={{ fontSize: 20, color: "#ffffff", marginRight: 1 }} />,
  }, 
];
function GuardianAppRoute() {
  return (
    <Routes>
      <Route path= "/GuardianStatistics" element={GuardianStatistics}></Route>
      <Route path= "/Main_guardian" element={Main_guardian}></Route>
    </Routes>
  );
}

const AllApp = {'menuItems': AllAppMenuItems, 'AppRoute': AllAppRoute};
const AdminApp = {'menuItems': AdminAppMenuItems, 'AppRoute': AdminAppRoute};
const GovernmentApp = {'menuItems': GovernmentAppMenuItems, 'AppRoute': GovernmentAppRoute};
const AgencyApp = {'menuItems': AgencyAppMenuItems, 'AppRoute': AgencyAppRoute};
const GuardianApp = {'menuItems': GuardianAppMenuItems, 'AppRoute': GuardianAppRoute};

export default AllApp;
export {AdminApp, GovernmentApp, GuardianApp, AgencyApp};
