import React from 'react';
import { GenericWorkflowTaskCard } from '../GenericWorkflowTaskCard';
import { LineDecorator } from '../../../LineDecorator';
import PmTaskIcon from '../../../../../icons/PmTaskIcon';
import { ProfileMatchCard } from '../../../../../ProfileMatchCard';
import { useMdmEntity, useMdmMetadata } from '../../../../../contexts/MdmModuleContext';
import { useStyles } from './styles';
export var PotentialMatchTaskCard = function (_a) {
    var task = _a.task, match = _a.match, entitiesMap = _a.entitiesMap;
    var styles = useStyles();
    var entity = useMdmEntity();
    var metadata = useMdmMetadata();
    return (React.createElement(GenericWorkflowTaskCard, { task: task, Icon: PmTaskIcon }, match && (React.createElement(LineDecorator, { last: true },
        React.createElement("div", { className: styles.pmCard },
            React.createElement(ProfileMatchCard, { metadata: metadata, entity: entity, match: match, entitiesMap: entitiesMap }))))));
};
