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