import {Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalTitle} from "react-bootstrap";


function StandardCodeListModal({show,content,onClose,title,size}){
    return(
        <Modal size={size} show={show}  aria-labelledby="example-modal-sizes-title-lg">
            <ModalHeader>
                <ModalTitle id="example-modal-sizes-title-lg">{title}</ModalTitle>
            </ModalHeader>
            <ModalBody>
                {content}
            </ModalBody>
            <ModalFooter><Button onClick={onClose}>닫기</Button></ModalFooter>
        </Modal>)
}

function StandardCodeListModalTable({head,content}){
    return(
        <table>
            <thead>
                {head}
            </thead>
            <tbody>
                {content}
            </tbody>
        </table>
    )
}

export  {StandardCodeListModal,StandardCodeListModalTable};