import React from "react";
import Button from "../../component/Button.jsx";
import Table from "../../component/Table.jsx";
import Modal from "../../component/Modal.jsx";
import { useNavigate } from "react-router";
import ContentTitle from "../../component/ContentTitle.jsx";
import SubTitle from "../../component/SubTitle.jsx";

export default function EquipmentManagementSelectOne() {
  const navigate = useNavigate();
  //게시판
  const thead = [
    "No",
    "사용자명",
    "대상자등록번호",
    "관리기관", //관리기관, 올잇메디
    "담당자",  //시행기관
    "대여기간",
  ];
  const key = [
    "No",
    "name",
    "management_number",
    "agency", //관리기관, 올잇메디
    "protector",//시행기관
    "period",
  ];
  const content = [
    {
      No: 1,
      name: "김복남",
      management_number: 2022080101,
      agency: "A복지관",
      protector:"김복지",
      period: "2022.12.01 ~ 2023.11.30",
    },
    {
      No: 2,
      name: "홍길동",
      management_number: 2022080102,
      agency: "B복지관",
      protector:"김복지",
      period: "2020.05.01 ~ 2022.04.23",
    },
  ];
  return (
    <main>
      <div className="content-wrap">
      <ContentTitle contentTitle={"장비 상세 목록"} />
        <div className="board-wrap">
        <SubTitle explanation={"스마트약상자(ABCD-1)"} />
          <Table className="equipment-detail" head={thead} contents={content} contentKey={key} />
        </div>
      </div>
    </main>
  );
}
