var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import * as React from 'react';
import classnames from 'classnames';
import { CardContent } from './CardContent';
import { CardImage } from './CardImage';
var Card = /** @class */ (function (_super) {
    __extends(Card, _super);
    function Card() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Card.prototype.render = function () {
        var props = this.props;
        var className = classnames('rc-card', {
            'rc-card--secondary': props.secondary,
            'rc-card--with-footer': props.hasFooter,
            'rc-card--clickable': props.onClick
        });
        return (
        // eslint-disable-next-line
        React.createElement("section", { "data-test-automation-id": props.testAutomationId, className: className, onClick: props.onClick, role: props.onClick ? 'button' : 'presentation' }, props.children));
    };
    Card.Image = CardImage;
    Card.Content = CardContent;
    Card.defaultProps = {
        secondary: false,
        hasFooter: false,
        testAutomationId: 'card'
    };
    return Card;
}(React.PureComponent));
export { Card };
//# sourceMappingURL=Card.js.map