"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var CardStyledComponents_1 = require("./CardStyledComponents");
exports.CardClickable = function (props) {
    var onClick = function () {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        if (!props.disabled && props.onClick) {
            props.onClick.apply(props, args);
        }
    };
    return React.createElement(CardStyledComponents_1.StyledCardClickable, { onClick: onClick }, props.children);
};
//# sourceMappingURL=Card.js.map