import React, { useState } from "react";
import ContentTitle from "../../component/ContentTitle.jsx";
import SubTitle from "../../component/SubTitle.jsx";
import Modal from "../../component/Modal.jsx";
import Table from "../../component/Table.jsx";
import Button from "../../component/Button.jsx";
import { useNavigate } from "react-router";
import { width } from "@mui/system";
import DetailSearch from "../../component/DetailSearch.jsx";
import DetailTitle from "../../component/DetailTitle.jsx";
import Modal_Questionnaire from "../../component/Modal_Questionnaire.jsx";
import Modal_MedicalHistory from "../../component/Modal_MedicalHistory.jsx";
import Modal_Blood from "../../component/Modal_Blood.jsx";
import Modal_ECG from "../../component/Modal_ECG.jsx";
export default function UserAuthoriySelect() {
const navigate = useNavigate();
const [modalOpen, setModalOpen] = React.useState(false);
const openModal = () => {
setModalOpen(true);
};
const closeModal = () => {
setModalOpen(false);
};
const [modalOpen2, setModalOpen2] = React.useState(false);
const openModal2 = () => {
setModalOpen2(true);
};
const closeModal2 = () => {
setModalOpen2(false);
};
const [modalOpen3, setModalOpen3] = React.useState(false);
const openModal3 = () => {
setModalOpen3(true);
};
const closeModal3 = () => {
setModalOpen3(false);
};
const [modalOpen4, setModalOpen4] = React.useState(false);
const openModal4 = () => {
setModalOpen4(true);
};
const closeModal4 = () => {
setModalOpen4(false);
};
const [tapName, setTapName] = useState("문진표 관리")
const thead = [
"No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "문진표", "내원기록"
];
const key = [
"No", "name", "number", "birth", "phone", "address", "average", "record"
];
const content = [
{
No: 1,
name: "김복남",
number: "00000001",
birth: "1948.11.15",
phone: "010-1234-5678",
address: "경상북도 군위군 삼국유사면",
average: (
),
record: (
),
},
];
const thead1 = [
"No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "심전도"
];
const key1 = ["No", "name", "number", "birth", "phone", "address", "ECG"
];
const content1 = [
{
No: 1,
name: "김복남",
number: "00000001",
birth: "1948.11.15",
phone: "010-1234-5678",
address: "경상북도 군위군 삼국유사면",
ECG: (
),
}
];
const thead2 = [
"No", "이름", "대상자등록번호", "생년월일", "연락처", "주소", "최근등록일", "최고혈압", "최저혈압", "맥박수", "혈압측정",
];
const key2 = [
"No", "name", "number", "birth", "phone", "address", "recent", "high", "low", "pulse", "average",
];
const content2 = [
{
No: 1,
name: "김복남",
number: "00000001",
birth: "1948.11.15",
phone: "010-1234-5678",
address: "경상북도 군위군 삼국유사면",
recent: "2020-01-05",
high: "130",
low: "90",
pulse: "60",
average: (
),
},
];
const data = [
{
id: 1,
title: "문진표 관리",
description: (
),
},
{
id: 2,
title: "심전도 관리",
description: (
),
},
{
id: 3,
title: "혈압 관리",
description: (
),
},
]
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}
))}
);
}