"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var utils_1 = require("@joincivil/utils");
var styledComponents_1 = require("./styledComponents");
var textComponents_1 = require("./textComponents");
var QuestionToolTip_1 = require("../QuestionToolTip");
exports.WithdrawnCard = function (props) {
    var displayDateTime;
    if (props.listingRemovedTimestamp) {
        var listingRemovedDateTime = utils_1.getLocalDateTimeStrings(props.listingRemovedTimestamp);
        displayDateTime = listingRemovedDateTime[0] + " " + listingRemovedDateTime[1];
    }
    return (React.createElement(styledComponents_1.StyledListingDetailPhaseCardContainer, null,
        React.createElement(styledComponents_1.StyledListingDetailPhaseCardSection, null,
            React.createElement(styledComponents_1.StyledPhaseDisplayName, null,
                React.createElement(textComponents_1.WithdrawnNewroomDisplayNameText, null),
                React.createElement(QuestionToolTip_1.QuestionToolTip, { explainerText: React.createElement(textComponents_1.WithdrawnNewsroomsToolTipText, null), positionBottom: true })),
            React.createElement(styledComponents_1.MetaItemLabel, null, "Withdrawn date"),
            React.createElement(styledComponents_1.MetaItemValue, null, displayDateTime))));
};
//# sourceMappingURL=WithdrawnCard.js.map