import React from "react"; import Table from "../../component/Table.jsx"; import Button from "../../component/Button.jsx"; import { useNavigate } from "react-router"; import DetailSearch from "../../component/AgencySearch.jsx"; import ContentTitle from "../../component/ContentTitle.jsx"; import SubTitle from "../../component/SubTitle.jsx"; import Modal from "../../component/Modal.jsx"; import person from "../../../resources/files/icon/person.png"; export default function ProtectorSelect() { const navigate = useNavigate(); const [modalOpen, setModalOpen] = React.useState(false); const openModal = () => { setModalOpen(true); }; const closeModal = () => { setModalOpen(false); }; //게시판 const thead = [ "No", "소속기관명", "이름", "연락처", "ID", "담당 대상자(어르신) (명)", ]; const key = [ "No", "center", "name", "phone", "ID", "worker", ]; const content = [ { No:(

{thead[0]} 1

), center: (

{thead[1]} A복지관

), name: (

{thead[2]} 홍길동

), phone: (

{thead[3]} 010-1234-1234

), ID: (

{thead[4]} a123

), worker: (

{thead[5]} 5명

), }, ]; //select option 동적 생성 // const optionList = () => { // let year = []; // let month = []; // let days = []; // let currentDate = new Date(); // let currentYear = currentDate.getFullYear(); // for (let i = 1910; i < currentYear.length; i++) { // year.push(i); // } // for (let j = 1; i < 13; j++) { // month.push(j); // } // for (let k = 1; i < 32; k++) { // days.push(k); // } // return year, month, days; // }; // React.useEffect(() => { // optionList(); // }, []); return (
{ navigate("/SeniorSelectOne"); }} /> ); }