import React from "react";

import Step from "./Step";

export default class StatusDocumentsCheck extends Step
{
	constructor(props)
	{
		super(props);
		this.state = {
			open: false, 
		};
		this.status = 103;
	}

	render()
	{
		const { index, statuscode_id, dealSelected } = this.props;
		const { open } = this.state;

		return (
			<div className={`${ statuscode_id === this.status ? "current" : statuscode_id > this.status ? "done" : "" }`}>
				<p>№ { dealSelected }</p>
				<span></span>
				<div className="status_body with_footer">
					{ this._renderHeader("Проверка документов") }
					<div className="wrap" style={{ display: open ? "block" : "none" }}>
						<div className="single_text">
							{ statuscode_id === this.status ? (
								<p>Идёт проверка предоставленных документов</p>
							) : (
								<p>Документы проверены</p>
							) }
						</div>
					</div>
					{ open && (
						<div className="status_footer">
						</div>
					) }
				</div>
			</div>
		)
	}
}