import React, { Component, PropTypes } from 'react'; import { defineMessages, injectIntl } from 'react-intl'; import styles from './styles.scss'; import cx from 'classnames'; import Button from '/imports/ui/components/button/component'; const COLORS = [ 'default', 'primary', 'danger', 'success', ]; const propTypes = { color: PropTypes.oneOf(COLORS), message: PropTypes.string, }; const defaultProps = { color: 'default', }; const intlMessages = defineMessages({ closeLabel: { id: 'app.audioNotification.closeLabel', }, }); class AudioNotification extends Component { constructor(props) { super(props); this.handleClose = this.handleClose.bind(this); } handleClose() { this.props.handleClose(); } render() { const { color, message, intl, } = this.props; if (!color || !message ){ return null; } else { return (