'use strict';

const DashboardWidget = (function () {
    function DashboardWidget(container, config) {
        BaseComponent.call(this, container);
        this.config = config;
    }

    DashboardWidget.prototype = Object.create(BaseComponent.prototype);
    DashboardWidget.prototype.constructor = DashboardWidget;

    DashboardWidget.prototype.render = function () {
        return `
      <div class="neu-widget">
        <div class="neu-widget-header">
          <h3>${this.config.title}</h3>
        </div>
        <div class="neu-widget-body">
          ${this.config.content || ''}
        </div>
      </div>
    `;
    };

    return DashboardWidget;
})();
