module.exports = class State {
	constructor(props){
		this.states = {meta: null, main: null};
		this.props = {box: 'confirm', close: false};
		Object.assign(this, props || {});
	}

	set style(style){
		this.props.style = style;
	}
	set css(style){
		this.style = style;
	}
	set className(className){
		this.props.className = className;
	}

	/**
	 *	Set Header
	 */
	set title(title){
		if(!this.states.meta) this.states.meta = {};
		this.states.meta.title = title;
	}
	set header(title){
		this.title = title;
	}
	set close(x){
		this.props.close = true;
	}

	/**
	 *	Set Content
	 */
	set main(text){
		this.content = text;
	}
	set content(text){
		this.states.main = text;
	}

	set modal(x){
		this.box = 'modal';
	}
	set box(name){
		this.props.box = name;
	}
}
