'use strict'; import React from 'react'; import AppConstants from '../../constants/application_constants'; let ButtonSubmitOrClose = React.createClass({ propTypes: { submitted: React.PropTypes.bool.isRequired, text: React.PropTypes.string.isRequired, onClose: React.PropTypes.func.isRequired }, render() { if (this.props.submitted){ return (