import React, {Component} from 'react';
import './style.css';
class Rect extends Component {
render() {
return (
);
}
checkColor = () => {
if( this.props.rect.isSorted ){
return "green";
} else if( this.props.rect.isSorting ){
return "orange";
} else if( this.props.rect.isLeft ){
return "red";
} else if(this.props.rect.isRight){
return "purple";
}else{
return "#ADD8E6";
}
}
checkBorder = () =>{
if( this.props.rect.isRange ){
return "0px solid black";
} else{
return "0px"
}
}
}
export default Rect;