sensi-certi / frontend / src / components / Popup.js
Popup.js
Raw
import React from 'react'
import "./Popup.css"

function Popup(props) {
  return (props.trigger) ? (
    <div className='popup' >
        <div className='popup-inner'>
        {props.children}
            <button className='btn2 "close-btn' type="button" class="btn btn-primary" onClick={ () => props.setTrigger(false)}>Close</button>
           
            </div>
    </div>
  ) : "";
  
}

export default Popup