import React from "react";
import Title from "../../component/Title.jsx";
import Table from "../../component/Table.jsx";
import Map from "../../component/chart/Map.jsx";
import Chart from "../../component/chart/Chart.jsx";
import Chart5_agency from "../../component/chart/Chart5_agency.jsx";
import Chart2_agency from "../../component/chart/Chart2_agency.jsx";
import AddCircleIcon from "@mui/icons-material/AddCircle";
import Calendar_agency from "../../component/Calendar_agency.jsx";
import tool from "../../../resources/files/images/tool.png";
import medicinebox from "../../../resources/files/images/medicinebox.png";
import box from "../../../resources/files/images/box.png";
import exchange from "../../../resources/files/images/exchange.png";
import error from "../../../resources/files/images/error.png";
import batteryAgency from "../../../resources/files/images/batteryAgency.png";
import medicineAgency from "../../../resources/files/images/medicineAgency.png";
import temperatureAgency from "../../../resources/files/images/temperatureAgency.png";
import TitleSmall from "../../component/TitleSmall.jsx";

export default function Main2() {
  const thead = ["No", "계약업체명", "구분", "담당자 연락처", "주소"];
  const key = ["No", "agency", "division", "phone", "address",];
  const content = [
    {
      No: 1,
      agency: "A복지관",
      division: "교환",
      phone: "010-1234-5678",
      address: "경상북도 군위군 삼국유사면",
    },
  ];


  return (
    <main>
      <div className="flex-start margin-bottom2"><img src={medicinebox} alt="" /><TitleSmall title={"대상자 현황"} explanation={"2023.02.28 기준"} /></div>
      <div className="main-grid-agency margin-bottom2">
        <ul className="content-box statistics-agency" background="#f7acba">
          <li className="flex-start">
            <img src={box} alt="" />
            <div className="text">
              <p>나의 관리 대상자</p>
              <p className="peoplecount">40</p>
            </div>
          </li>
        </ul>
        <ul className="content-box statistics-agency" background="#8ef3d1">
          <li className="flex-start">
            <img src={medicineAgency} alt="" />
            <div className="text">
              <p>미복약 위험 대상자</p>
              <p className="peoplecount">40</p>
            </div>
          </li>
        </ul>
        <ul className="content-box statistics-agency" background="#ebe7b9" >
          <li className="flex-start">
            <img src={temperatureAgency} alt="" />
            <div className="text">
              <p>댁내 온도 위험 대상자</p>
              <p className="peoplecount">40</p>
            </div>
          </li>
        </ul>
        <ul className="content-box statistics-agency" background="#5f9af3">
          <li className="flex-start">
            <img src={batteryAgency} alt="" />
            <div className="text">
              <p>배터리 부족 대상자 </p>
              <p className="peoplecount">40</p>
            </div>
          </li>
        </ul>
      </div>
      <div className="flex-start margin-bottom2"><img src={medicinebox} alt="" /><TitleSmall title={"방문 관리 리스트"}  /></div>
      <div className="main-grid-agency">
        <div className="content-box combine-left-government3 visitlist">  
            <div className="margin-bottom2">
              <Calendar_agency />
            </div>   
            <div>
            <Table className="agency-visitlist" head={thead} contents={content} contentKey={key} />
              </div>         
        </div>
      </div>
    </main>
  );
}
