import React from "react"; import Button from "./Button.jsx"; import Modal from "./MatchingModal.jsx"; import Modal2 from "./Modal.jsx"; import SubTitle from "./SubTitle.jsx"; // import styled from "styled-components"; export default function Table({ head, contents, contentKey, onClick, className, view, offset, limit }) { const [userName, setUserName] = React.useState(""); const [modalOpen, setModalOpen] = React.useState(false); const openModal = () => { setModalOpen(true); }; const [modalOpen2, setModalOpen2] = React.useState(false); const openModal2 = () => { setModalOpen2(true); }; const closeModal = () => { setModalOpen(false); }; const closeModal2 = () => { setModalOpen2(false); }; // 보호자 등록페이지 데이터 const thead3 = [ "No", "이름", "생년월일", "연락처", "대상자와의 관계", ]; const key3 = [ "No", "name", "birth", "phone", "relationship", ]; const content3 = [ { No: 1, name: "김훈", birth: "1965.01.01", relationship: "아들", phone: "010-1234-1234", }, ]; const buttonPrint = () => { if (view == 'mySenior') { return (