"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PotentialMatchTaskCard = void 0;
var react_1 = __importDefault(require("react"));
var GenericWorkflowTaskCard_1 = require("../GenericWorkflowTaskCard");
var LineDecorator_1 = require("../../../LineDecorator");
var PmTaskIcon_1 = __importDefault(require("../../../../../icons/PmTaskIcon"));
var ProfileMatchCard_1 = require("../../../../../ProfileMatchCard");
var MdmModuleContext_1 = require("../../../../../contexts/MdmModuleContext");
var styles_1 = require("./styles");
var PotentialMatchTaskCard = function (_a) {
    var task = _a.task, match = _a.match, entitiesMap = _a.entitiesMap;
    var styles = (0, styles_1.useStyles)();
    var entity = (0, MdmModuleContext_1.useMdmEntity)();
    var metadata = (0, MdmModuleContext_1.useMdmMetadata)();
    return (react_1.default.createElement(GenericWorkflowTaskCard_1.GenericWorkflowTaskCard, { task: task, Icon: PmTaskIcon_1.default }, match && (react_1.default.createElement(LineDecorator_1.LineDecorator, { last: true },
        react_1.default.createElement("div", { className: styles.pmCard },
            react_1.default.createElement(ProfileMatchCard_1.ProfileMatchCard, { metadata: metadata, entity: entity, match: match, entitiesMap: entitiesMap }))))));
};
exports.PotentialMatchTaskCard = PotentialMatchTaskCard;
