"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const PageTitle_1 = require("../components/generic/PageTitle");
const StepSelector_1 = __importDefault(require("../components/navigation/StepSelector"));
const InactivityWindow_1 = __importDefault(require("../components/steps/room/InactivityWindow"));
const StepAddon_1 = __importDefault(require("../pages/steps/StepAddon/StepAddon"));
const StepConfirmation_1 = __importDefault(require("../pages/steps/StepConfirmation/StepConfirmation"));
const StepGuide_1 = __importDefault(require("../pages/steps/StepGuide"));
const GetStepRoom_1 = __importDefault(require("../util/GetStepRoom"));
const mappingPageTitle = {
    date: 'Date',
    room: 'Room',
    confirmation: 'Confirmation',
    addon: 'Addon',
    thanks: 'Thanks',
};
const StepRoute = (props) => {
    const pageTitleStep = mappingPageTitle[props.step.getName().toLowerCase()];
    const StepContent = props.step.getComponent();
    return (react_1.default.createElement(StepGuide_1.default, { step: props.step },
        pageTitleStep ? react_1.default.createElement(PageTitle_1.PageTitle, { step: pageTitleStep }) : null,
        react_1.default.createElement(StepSelector_1.default, null),
        react_1.default.createElement(StepContent, null),
        [(0, GetStepRoom_1.default)().getName(), StepAddon_1.default.getName(), StepConfirmation_1.default.getName()].includes(props.step.getName()) && react_1.default.createElement(InactivityWindow_1.default, null)));
};
exports.default = StepRoute;
//# sourceMappingURL=NaturallyProgressedStepRoute.js.map