/** * Alert.ts * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT license. * * Web Alert dialog boxes. */ import * as React from 'react'; import * as RX from '../common/Interfaces'; import { AlertModalContent } from './AlertModalContent'; import Modal from './Modal'; // Web/HTML implementation for alert dialog boxes export class Alert extends RX.Alert { private _modalId = 'RX.Alert_WebModal'; show(title: string, message?: string, buttons?: RX.Types.AlertButtonSpec[], options?: RX.Types.AlertOptions): void { Modal.show( ( ), this._modalId ); } } export default new Alert();