import React from "react"; import Table from "../../component/Table.jsx"; import Button from "../../component/Button.jsx"; import SubTitle from "../../component/SubTitle.jsx"; import Modal from "../../component/Modal.jsx"; export default function UserAuthoriySelect() { const [modalOpen, setModalOpen] = React.useState(false); const openModal = () => { setModalOpen(true); }; const closeModal = () => { setModalOpen(false); }; const thead1 = [ "No", "사용자관리번호", "관리기관", "이름", "성별", "지역", "연락처", "주소", ]; const key1 = ["No", "management_number", "level_of_care", "name", "gender", "birth", "phone", "address",]; const content1 = [ { No: 1, management_number: 2022080101, level_of_care: "A복지관", name: "김복남", gender: "남", birth: "대구", phone: "010-1234-1234", address: "경상북도 군위군 삼국유사면", }, ]; const thead2 = [ "No", "보호자명", "ID", "관리기관", "해당 대상자", "연락처", ]; const key2 = [ "No", "name", "Id", "management_agency", "phone", "birth", ]; const content2 = [ { No: 1, name: "김훈", Id: "admin2", management_agency: "보호재단", phone: "김복남 어르신", birth: "010-1234-1234", }, ]; const thead3 = [ "No", "기관명", "사업자번호", "ID", "담당자", "연락처", "주소", ]; const key3 = [ "No", "name", "birth", "Id", "management_agency", "gender", "address", ]; const content3 = [ { No: 1, name: "보훈병원", birth: " 515-82-00000", Id: "admin", management_agency: "홍길동", gender: "053-818-8181", address: "대구광역시 달성군 ", }, ]; const thead4 = [ "No", "담당자명", "소속기관", "ID", "연락처", "주소", ]; const key4 = [ "No", "name", "birth", "Id", "management_agency", "address", ]; const content4 = [ { No: 1, name: "홍길동", birth: " 대구보훈병원", Id: "admin", management_agency: "053-818-8181", address: "대구광역시 달성군 ", }, ]; const thead5 = [ "No", "장비명", "시리얼 넘버", "기기 상태", "구매일", "배터리 잔량", "대여가능여부", ]; const key5 = ["No", "equipment_name", "serialNumber", "work", "name", "battery", "rental",]; const content5 = [ { No: 1, equipment_name: "스마트약상자", serialNumber: "ABCD-1", work: "작동", name: "2022.12.02", battery: "10%", rental: "대여가능", }, ]; const data = [ { id: 1, title: "사용자", description: ( { navigate("/SeniorSelectOne"); }} /> ), }, { id: 2, title: "보호자(가족)", description: (
{ navigate("/SeniorSelectOne"); }} /> ), }, { id: 3, title: "계약업체", description: (
{ navigate("/SeniorSelectOne"); }} /> ), }, { id: 4, title: "복지사, 간호사", description: (
{ navigate("/SeniorSelectOne"); }} /> ), }, { id: 5, title: "관리자", description: (
{ navigate("/SeniorSelectOne"); }} /> ), }, ]; const [index, setIndex] = React.useState(1); return (
  • 검색 내역이 없습니다.

선택된 대상자

    올잇메디
    {data.map((item) => (
  • setIndex(item.id)} > {item.title}
  • ))}
    {data .filter((item) => index === item.id) .map((item) => (
  • {item.description}
  • ))}
); }