"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlCard = void 0;
var jsx_runtime_1 = require("react/jsx-runtime");
var react_1 = require("react");
var theme_1 = require("../theme");
exports.GlCard = (0, react_1.memo)(function (props) {
    var _a;
    var children = props.children, link = props.link, className = props.className;
    var _b = useStyles(), classes = _b.classes, cx = _b.cx;
    return ((0, jsx_runtime_1.jsx)("div", __assign({ className: cx(classes.root, className), onClick: (_a = link === null || link === void 0 ? void 0 : link.onClick) !== null && _a !== void 0 ? _a : (function () { var _a; return (window.location.href = (_a = link === null || link === void 0 ? void 0 : link.href) !== null && _a !== void 0 ? _a : "#"); }) }, { children: children }), void 0));
});
var useStyles = (0, theme_1.makeStyles)({ "name": { GlCard: exports.GlCard } })(function (theme) { return ({
    "root": {
        "borderRadius": 16,
        "transition": "box-shadow 200ms",
        "margin": theme.spacing(2),
        "boxShadow": theme.shadows[1],
        "backgroundColor": theme.colors.useCases.surfaces.surface1,
        ":hover": {
            "boxShadow": theme.shadows[2],
            "cursor": "pointer",
        },
    },
}); });
//# sourceMappingURL=GlCard.js.map