import * as React from 'react' ; import * as ReactDOM from 'react-dom' ; import { BaseDialog , IDialogConfiguration } from '@microsoft/sp-dialog' ; import PageModelDialogContent from './PageModelDialogContent' ; export default class PageModelDialog extends BaseDialog { public render ( ) { ReactDOM . render ( < PageModelDialogContent close = { this . close . bind ( this ) } / > , this . domElement ) ; } public getConfig ( ) { return { isBlocking : false } ; } public close ( ) { return super . close ( ) ; } protected onAfterClose ( ) { super . onAfterClose ( ) ; super . close ( ) ; ReactDOM . unmountComponentAtNode ( this . domElement ) ; } }