import React from "react" import Options from "misago/components/threads-list/thread/subscription/options" export default class extends React.Component { getIcon() { if (this.props.thread.subscription === true) { return "star" } else if (this.props.thread.subscription === false) { return "star_half" } return "star_border" } getClassName() { if (this.props.thread.subscription === true) { return "btn btn-default btn-icon btn-block btn-subscribe btn-subscribe-full dropdown-toggle" } else if (this.props.thread.subscription === false) { return "btn btn-default btn-icon btn-block btn-subscribe btn-subscribe-half dropdown-toggle" } return "btn btn-default btn-icon btn-block btn-subscribe dropdown-toggle" } render() { const { moderation, subscription } = this.props.thread const fullwidth = !moderation.length let className = fullwidth ? "col-xs-12" : "col-xs-6" className += " hidden-xs hidden-sm" return (