"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 react_router_dom_1 = require("react-router-dom");
var styledComponents_1 = require("./styledComponents");
var ListingSummaryBase = function (props) {
    return (React.createElement(styledComponents_1.StyledListingSummaryContainer, null,
        props.listingDetailURL && React.createElement(react_router_dom_1.Link, { to: props.listingDetailURL }, props.children),
        !props.listingDetailURL && React.createElement(React.Fragment, null, props.children)));
};
exports.default = ListingSummaryBase;
//# sourceMappingURL=ListingSummaryBase.js.map