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";
function Menu({ className, children, href, title }) {
if (!children) {
return
{title}
}
const [open, setOpend] = useState('open');
// if (className) className = 'group-lvl';
// className = className ?? 'group-lvl';
className ??= 'group-lvl';
className = `${className} sub-nav ${open}`; //[className, 'sub-nav', open].join(' ')
return
setOpend(open ? '' : 'open')} className="max-agency">
{title} 관리기관 추가
{open && }
}
export default function UserAuthoriySelect() {
const [agencyName, setAgencyName]= useState("시행기관")
const [modalOpen, setModalOpen] = React.useState(false);
const openModal = () => {
setModalOpen(true);
};
const closeModal = () => {
setModalOpen(false);
};
const thead = [
"No",
"소속기관명",
"이름",
"연락처",
"성별",
"주소",
"담당 대상자(어르신) 인원",
];
const key = [
"No",
"center",
"name",
"phone",
"gender",
"address",
"worker",
];
const content = [
{
No: 1,
center: "A복지관",
name: "홍길동",
phone: "010-1234-1234",
gender: "여",
address: "경상북도 군위군 삼국유사면",
worker: "10명"
},
];
const thead1 = [
"No",
"이름",
"대상자등록번호",
"생년월일",
"성별",
"연락처",
"주소",
"보호자",
];
const key1 = ["No",
"name",
"management_number",
"birth",
"gender",
"phone",
"address",
"family",
];
const content1 = [
{
No: 1,
name: "김복남",
management_number: 2022080101,
birth:"1950.02.03",
gender: "남",
phone: "010-1234-1234",
address: "경상북도 군위군 삼국유사면",
family:(
),
},
];
const thead3 = [
"No",
"사용자명",
"사용자ID",
"대상자와의 관계",
"보호자 연락처",
];
const key3 = [
"No",
"name",
"Id",
"relationship",
"phone",
];
const content3 = [
{
No: 1,
name: "김훈",
Id: "admin2",
relationship: "아들",
phone: "010-1234-1234",
},
];
const data = [
{
id: 1,
title: "대상자(사용자)",
description: (
{
navigate("/SeniorSelectOne");
}}
/>
),
},
{
id: 2,
title: "복지사(간호사)",
description: (
{
navigate("/SeniorSelectOne");
}}
/>
),
},
]
const [index, setIndex] = React.useState(1);
return (
{
navigate("/SeniorInsert");
}}
/>
{data.map((item) => (
setIndex(item.id)}
>
{item.title}
))}
);
}