import React from 'react'; import PropTypes from 'prop-types'; import { Components } from 'meteor/vulcan:core'; import { registerComponent } from 'meteor/vulcan:core'; import Button from 'react-bootstrap/lib/Button'; import { FormattedMessage } from 'meteor/vulcan:i18n'; const FormSubmit = ({ submitLabel, cancelLabel, cancelCallback, document, deleteDocument, collectionName, classes, }) => (
{cancelCallback ? ( { e.preventDefault(); cancelCallback(document); }} > {cancelLabel ? cancelLabel : } ) : null} {deleteDocument ? (

) : null}
); FormSubmit.propTypes = { submitLabel: PropTypes.string, cancelLabel: PropTypes.string, cancelCallback: PropTypes.func, document: PropTypes.object, deleteDocument: PropTypes.func, collectionName: PropTypes.string, classes: PropTypes.object, }; registerComponent('FormSubmit', FormSubmit);