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";

export default function EquipmentInquiry_admin() {
  const navigate = useNavigate();
  //게시판
  const thead = [
    "No",
    "장비명",
    "시리얼 넘버",
    "기관명",
    "요청자",
    "요청일자",
    "구분",
    "처리여부",
  ];
  const key = [
    "No",
    "equipment_name",
    "serialNumber",
    "agency",
    "name",
    "date",
    "category",
    "finish"
  ];
  const content = [
    {
      No: 2,
      equipment_name: "스마트약상자",
      serialNumber: "ABCD-2",
      agency: "B복지관",
      name: "정복지",
      date: "2023-02-02",
      category: "수리",
      finish: "처리중",
    },
    {
      No: 1,
      equipment_name: "스마트약상자",
      serialNumber: "ABCD-1",
      agency: "A복지관",
      name: "김상냥",
      date: "2023-01-27",
      category: "교환",
      finish: "처리완료",
    },

  ];
  return (
    <main>
      <div className="content-wrap">
        <ContentTitle contentTitle={"장비 문의 요청"} />
        <div className="board-wrap">
          <div className="btn-wrap flex-end margin-bottom">
            <Button className={"btn-small green-btn "} btnName={"삭제"} />
          </div>
          <Table className="equipment-detail" head={thead} contents={content} contentKey={key} onClick={() => {
                navigate("/CallSelect");
              }}/>
        </div>
      </div>
    </main>
  );
}
