import React, {Component} from "react";
import './questioncss/questioncom.css';
import '../tpm/newshixuns/css/Newshixuns.css';
import Paperreview_single from "./Paperreview_single";

//判断题
class Paperreview_items extends Component {

	render() {
		let {paperreviewsingleindex,paperreviewsinglename,typenames,indexs,object,typenamesn}=this.props;

		return (
			<div>
				{
					paperreviewsingleindex===indexs&&paperreviewsinglename===typenames?
						<div 	 className="xaxisreverseorder mt25 mr2">
							<div className="scd xiaoshou" onClick={()=>this.props.showsetmodalsTypedels(object.item_id,true,1)}>删除</div>
							{
								this.props.match.params.type==="Intelligence"?
									<div className="szdfds xiaoshou" onClick={() =>this.props.Changingtopics(object.item_id)}>换题</div>
									:
									""
							}
							<div className="szdfd xiaoshou" onClick={()=>this.props.Singlemagazines(true,object.id,typenamesn)}>设置得分</div>
						</div>
						:	<div  className="xaxisreverseorder mt25 ">
						</div>
				}
				<Paperreview_single paperreviewsingleindex={paperreviewsingleindex}
														name={typenames}
														key={indexs}
														showparagraphs={(e,name) => this.props.showparagraphs(e,name)}
														objectsingle={object} key={indexs} indexx={indexs + 1}
														indexxy={indexs}
														hideparagraphs={() => this.props.hideparagraphs()}></Paperreview_single>
			</div>
		)

	}


}

export default Paperreview_items


