"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var WidgetBase_1 = require("@dojo/framework/core/WidgetBase");
var vdom_1 = require("@dojo/framework/core/vdom");
var alwaysRender_1 = require("@dojo/framework/core/decorators/alwaysRender");
var Themed_1 = require("@dojo/framework/core/mixins/Themed");
var css = require("../theme/card.m.css");
var Card = /** @class */ (function (_super) {
    tslib_1.__extends(Card, _super);
    function Card() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Card.prototype.render = function () {
        var actionsRenderer = this.properties.actionsRenderer;
        var actionsResult = actionsRenderer && actionsRenderer();
        return (vdom_1.tsx("div", { key: "root", classes: this.theme(css.root) },
            this.children,
            actionsResult && vdom_1.tsx("div", { classes: this.theme(css.actions) }, actionsResult)));
    };
    Card = tslib_1.__decorate([
        Themed_1.theme(css),
        alwaysRender_1.alwaysRender()
    ], Card);
    return Card;
}(Themed_1.ThemedMixin(WidgetBase_1.WidgetBase)));
exports.Card = Card;
exports.default = Card;

/*# sourceMappingURL=index.js.map*/