"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PageTitle = void 0;
const contexts_1 = require("../../../contexts/index.js");
const react_1 = __importDefault(require("react"));
const react_helmet_1 = require("react-helmet");
const PageTitle = ({ step }) => {
    const { pageTitle } = react_1.default.useContext(contexts_1.HotelOverridesContext);
    if (pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle.enable) {
        return (react_1.default.createElement(react_helmet_1.Helmet, null,
            react_1.default.createElement("meta", { charSet: "utf-8" }),
            react_1.default.createElement("title", null, pageTitle === null || pageTitle === void 0 ? void 0 : pageTitle[step])));
    }
    return null;
};
exports.PageTitle = PageTitle;
//# sourceMappingURL=index.js.map