"use strict";
exports.__esModule = true;
exports.LinkCard = exports.cnLinkCard = exports.cardPropViewDefault = exports.cardPropView = exports.cardPropSizeDefault = exports.cardPropSize = void 0;
var tslib_1 = require("tslib");
// @ts-nocheck
/* eslint-disable jsx-a11y/anchor-has-content */
require("./LinkCard.css");
var react_1 = (0, tslib_1.__importDefault)(require("react"));
var IconArrowRight_1 = require("../../icons/IconArrowRight/IconArrowRight");
var bem_1 = require("../../utils/bem");
var PropsWithAsAttributes_1 = require("../../utils/types/PropsWithAsAttributes");
var Button_1 = require("../Button/Button");
var usePropsHandler_1 = require("../EventInterceptor/usePropsHandler");
var Typography_1 = require("../Typography");
exports.cardPropSize = ['s', 'm', 'l'];
exports.cardPropSizeDefault = exports.cardPropSize[1];
exports.cardPropView = ['default'];
exports.cardPropViewDefault = exports.cardPropView[0];
exports.cnLinkCard = (0, bem_1.cn)('LinkCard');
exports.LinkCard = (0, PropsWithAsAttributes_1.forwardRefWithAs)(function (props) {
    var _a = (0, usePropsHandler_1.usePropsHandler)((0, exports.cnLinkCard)(), props), _b = _a.view, view = _b === void 0 ? exports.cardPropViewDefault : _b, _c = _a.size, size = _c === void 0 ? exports.cardPropSizeDefault : _c, title = _a.title, linkText = _a.linkText, link = _a.link, targetBlank = _a.targetBlank;
    console.log(props);
    return (react_1["default"].createElement("div", { className: (0, exports.cnLinkCard)({
            view: view,
            size: size
        }) },
        react_1["default"].createElement(Typography_1.Typography.Title, { size: "md", className: (0, exports.cnLinkCard)('Title') }, title),
        react_1["default"].createElement("div", { className: (0, exports.cnLinkCard)('Button') },
            react_1["default"].createElement(Button_1.Button, { iconRight: IconArrowRight_1.IconArrowRight, label: linkText, as: "a", target: targetBlank ? '_blank' : null, href: link }))));
});
