PHP Classes

File: src/components/modal/Modal.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Maniruzzaman WordPress Frontend Editor   src/components/modal/Modal.tsx   Download  
File: src/components/modal/Modal.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Maniruzzaman WordPress Frontend Editor
WordPress plugin for visual front-end development
Author: By
Last change:
Date: 8 months ago
Size: 1,121 bytes
 

Contents

Class file image Download
/** * Internal dependencies. */ import {Overlay} from "./Overlay"; import {IModal} from "../../interfaces"; const Modal = ({show = false, title = '', onCloseModal, children}: IModal) => { return ( <> {show && ( <> <Overlay show={show}/> <div className="bsf-spacex-modal"> <div className="modal-header"> <div className=""> { title.length > 0 && <h2 className="modal-title">{title}</h2> } </div> <div className="modal-close"> <button onClick={onCloseModal}> &times; </button> </div> </div> <div>{children}</div> </div> </> )} </> ); }; export default Modal;