import React from 'react';
import './Alert.scss';

export const Alert = ({ message, style, action, actionMessage, close }) => (
  <span className={'alert alert-dismissible alert-position ' + style}>
    { message }
    <a className='alert-link' onClick={action}> { actionMessage } </a>
    <button className='btn btn-default btn-xs alert-close-button' onClick={close}>
      <span className='fa fa-close'/>
    </button>
  </span>
);

Alert.propTypes = {
  action: React.PropTypes.func,
  actionMessage: React.PropTypes.string,
  message: React.PropTypes.string.isRequired,
  style: React.PropTypes.string.isRequired
};

export default Alert;

@@ -521,16 +521,47 @@
 string,%0A
+  close: React.PropTypes.func,%0A
   messag

add propTypes for close