import * as React from 'react'; import RTG = require('react-transition-group'); import { Observable } from 'rxjs'; import { BaseView, BaseViewProps } from '../../React'; import { AlertHostViewModel } from './AlertHostViewModel'; import { AlertView } from './AlertView'; import { AlertViewModel } from './AlertViewModel'; export interface AlertHostViewProps extends BaseViewProps {} export class AlertHostView extends BaseView< AlertHostViewProps, AlertHostViewModel > { public static displayName = 'AlertHostView'; updateOn(viewModel: Readonly) { return [viewModel.alerts.changed]; } render() { const { className, rest } = this.restProps(); return (
{this.renderAlerts()}
); } private renderAlerts() { return this.viewModel.alerts.value.map(x => ( )); } }