import * as React from "react" ; import ReactModal from "react-modal" ; const BoardOverlay = ( { children } ) => { const parentSelector = ( ) => document . querySelector ( ".board-container" ) as HTMLElement ; return ( < ReactModal isOpen className = "modal" overlayClassName = "modal-overlay" parentSelector = { parentSelector } > { children } < /ReactModal>); } ; export { BoardOverlay } ;