"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 StoryFeedStyledComponents_1 = require("./StoryFeedStyledComponents");
var FullscreenModal_1 = require("../FullscreenModal");
var elements_1 = require("@joincivil/elements");
exports.StoryModal = function (props) {
    var maxHeight = window.innerHeight - 200;
    return (React.createElement(React.Fragment, null,
        React.createElement(FullscreenModal_1.FullScreenModal, { open: props.open, dismissOnOutsideClick: true, handleClose: props.handleClose },
            React.createElement(StoryFeedStyledComponents_1.StoryModalContain, { maxHeight: maxHeight },
                props.handleClose && (React.createElement(StoryFeedStyledComponents_1.StoryModalCloseBtn, null,
                    React.createElement(elements_1.CloseXButton, { onClick: function () { return props.handleClose && props.handleClose(); } }))),
                props.children))));
};
//# sourceMappingURL=StoryModal.js.map