<commit_before>import React, { PropTypes, Component } from 'react';
import { Button } from 'react-bootstrap';
import { ModalTrigger } from "meteor/nova:core";

const PostsNewButton = (props, context) => {

  return (
    <ModalTrigger title="New Post" component={<Button className="posts-new-button" bsStyle="primary">New Post</Button>}>
      <Telescope.components.PostsNewForm/>
    </ModalTrigger>
  )
}

PostsNewButton.displayName = "PostsNewButton";<commit_msg>adapt new post dialog size based on logged in status<commit_after>import React, { PropTypes, Component } from 'react';
import { Button } from 'react-bootstrap';
import { ModalTrigger } from "meteor/nova:core";

const PostsNewButton = (props, context) => {

  const size = context.currentUser ? "small" : "large";

  return (
    <ModalTrigger size={size} title="New Post" component={<Button className="posts-new-button" bsStyle="primary">New Post</Button>}>
      <Telescope.components.PostsNewForm/>
    </ModalTrigger>
  )
}

PostsNewButton.displayName = "PostsNewButton";
{'fraction_non_alphanumeric': 0.14038461538461539, 'fraction_numerical': 0.0, 'mean_word_length': 5.159763313609467, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3399669', 'n_tokens_mistral': 321, 'n_tokens_neox': 306, 'n_words': 74}