import * as React from 'react'; import { Alert } from 'react-bootstrap'; import { BaseView, BaseViewProps } from '../../React'; import { AlertViewModel } from './AlertViewModel'; export interface AlertViewProps extends BaseViewProps {} export class AlertView extends BaseView { public static displayName = 'AlertView'; render() { const { className, rest } = this.restProps(); return (
x.dismiss)} >
{this.viewModel.header}
{this.renderAlertContent()}
); } private renderAlertContent() { return this.wxr.renderConditional( String.isString(this.viewModel.content), () => (
), () => this.viewModel.content, ); } }