module.exports = require("marko/legacy-components").defineComponent({
    template: require.resolve("./template.marko"),
    getInitialState: function() {
        return {
            buttonSize: "small",
            buttonLabel: "Initial Label"
        };
    },
    getTemplateData: function(state) {
        return {
            buttonSize: state.buttonSize,
            buttonLabel: state.buttonLabel
        };
    },

    update_buttonSize: function(newSize) {
        var button1Widget = this.getWidget("button1");
        button1Widget.setSize(newSize);
    }
});
