"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.GlIllustration = void 0;
var jsx_runtime_1 = require("react/jsx-runtime");
var GlImage_1 = require("./utils/GlImage");
var GlCodeBlock_1 = require("./GlCodeBlock");
var react_1 = require("react");
var theme_1 = require("./theme");
var GlVideo_1 = require("./utils/GlVideo");
exports.GlIllustration = (0, react_1.memo)(function (props) {
    var className = props.className, hasShadow = props.hasShadow;
    var _a = useStyles(), classes = _a.classes, cx = _a.cx;
    return ((0, jsx_runtime_1.jsx)("div", __assign({ className: cx(classes.root, className) }, { children: (function () {
            var commonProps = {
                hasShadow: hasShadow,
                "className": classes.content,
            };
            switch (props.type) {
                case "code":
                    return (0, jsx_runtime_1.jsx)(GlCodeBlock_1.GlCodeBlock, __assign({}, commonProps, props));
                case "image":
                    return (0, jsx_runtime_1.jsx)(GlImage_1.GlImage, __assign({}, commonProps, props));
                case "video":
                    return (0, jsx_runtime_1.jsx)(GlVideo_1.GlVideo, __assign({}, commonProps, props));
            }
        })() })));
});
var useStyles = (0, theme_1.makeStyles)({ "name": { GlIllustration: exports.GlIllustration } })({
    "root": {},
    "content": {
        "width": "100%",
    },
});
//# sourceMappingURL=GlIllustration.js.map