import React from 'react'; import PropTypes from 'prop-types'; import { Input, Button, Modal, NgIf } from './'; import "./alert.scss"; export class Alert extends React.Component { constructor(props){ super(props); } onSubmit(e){ e && e.preventDefault && e.preventDefault(); this.props.onConfirm && this.props.onConfirm(); } render() { return (

{this.props.message}

); } } Alert.propTypes = { appear: PropTypes.bool.isRequired, message: PropTypes.string.isRequired, onConfirm: PropTypes.func };