import { Components, registerComponent } from 'meteor/vulcan:lib'; import React from 'react'; import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n'; const NewButton = ({ collection, size, style = 'primary', ...props }, { intl }) => ( } > ); NewButton.contextTypes = { intl: intlShape, }; NewButton.displayName = 'NewButton'; registerComponent('NewButton', NewButton); /* NewForm Component */ const NewForm = ({ closeModal, successCallback, ...props }) => { const success = successCallback ? () => { successCallback(); closeModal(); } : closeModal; return ; }; registerComponent('NewForm', NewForm);