/* jshint ignore:start */ import React from 'react'; import ReplyButton from './reply-button'; import Subscription from './subscription'; import AddParticipantModal from 'misago/components/add-participant'; import modal from 'misago/services/modal'; import posting from 'misago/services/posting'; export default function(props) { return (
); } export function GotoNew(props) { if (props.thread.is_new) { return (
  • {gettext("New")}
  • ); } else { return null; } } export function GotoUnapproved(props) { if (props.thread.has_unapproved_posts && props.thread.acl.can_approve) { return (
  • {gettext("Unapproved")}
  • ); } else { return null; } } export function GotoLast(props) { return (
  • {gettext("Last")}
  • ); } export function SubscriptionMenu(props) { if (!props.user.id) { return null; } return (
  • ) } export function Reply(props) { if (!props.thread.acl.can_reply) { return null; } return (
  • ); } export class StartPoll extends React.Component { onClick = () => { posting.open({ mode: 'POLL', submit: this.props.thread.api.poll, thread: this.props.thread, poll: null }); } render() { if (!this.props.thread.acl.can_start_poll || this.props.thread.poll) { return null; } return (
  • ); } } export class AddParticipant extends React.Component { onClick = () => { modal.show( ); } render() { if (!this.props.thread.acl.can_add_participants) return null; return (
  • ); } }