kcscDev/egovframe-template-simple-r.../src/pages/standardCode/StandardCodeListModal.js

30 lines
875 B
JavaScript
Raw Normal View History

2023-11-03 07:09:59 +00:00
import {Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalTitle} from "react-bootstrap";
function StandardCodeListModal({show,content,onClose,title,size}){
2023-11-03 07:09:59 +00:00
return(
<Modal size={size} show={show} aria-labelledby="example-modal-sizes-title-lg">
2023-11-03 07:09:59 +00:00
<ModalHeader>
<ModalTitle id="example-modal-sizes-title-lg">{title}</ModalTitle>
2023-11-03 07:09:59 +00:00
</ModalHeader>
<ModalBody>
{content}
2023-11-03 07:09:59 +00:00
</ModalBody>
<ModalFooter><Button onClick={onClose}>닫기</Button></ModalFooter>
</Modal>)
}
2023-11-08 02:30:04 +00:00
function StandardCodeListModalTable({head,content}){
return(
<table>
<thead>
2023-11-08 02:30:04 +00:00
{head}
</thead>
<tbody>
2023-11-08 02:30:04 +00:00
{content}
</tbody>
</table>
)
}
2023-11-08 02:30:04 +00:00
export {StandardCodeListModal,StandardCodeListModalTable};