import { useState } from 'react' import { Modal } from 'react-bootstrap' export default function ModalButton ({ children, clicker }) { const [show, setShow] = useState() return ( <> setShow(false)} >
setShow(false)}>X
{show && children}
setShow(true)}>{clicker}
) }