var expect = require('chai').expect;


module.exports = require('marko/widgets').defineComponent({
	template: require.resolve('./template.marko'),

	getTemplateData: function(state, input) {
		return {
			name: input.name,
            messageCount: input.messageCount
		};
	},

	init: function() {
		this.divClicked = false;
		this.buttonClicked = false;
	},

	handleDivClick: function(event) {
		this.divClicked = true;
	},

	handleButtonClick: function(event) {
		this.buttonClicked = true;
		event.stopPropagation();
	}
});