import { ReactElement } from "react" ; import PopupContainer from "../components/PopupContainer" ; import { FloatingWindow } from "./windows" ; /**
 * Popup is a dialog-like floating window message
 */ export class Popup extends FloatingWindow { public container : ( ) => ReactElement ; param title param content constructor ( title , content ) { super ( ) ; this . container = ( ) => { return < PopupContainer title = { title } content = { content } / > ; } ; } }