import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n'; import { Button } from 'react-bootstrap'; const PostsNewButton = (props, context) => { const size = props.currentUser ? 'large' : 'small'; const button = ; return ( ) } PostsNewButton.displayName = 'PostsNewButton'; PostsNewButton.propTypes = { currentUser: PropTypes.object, }; PostsNewButton.contextTypes = { messages: PropTypes.object, intl: intlShape }; registerComponent('PostsNewButton', PostsNewButton, withCurrentUser);