"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
/* eslint-disable @typescript-eslint/no-explicit-any */
const react_1 = __importDefault(require("react"));
const prop_types_1 = __importDefault(require("prop-types"));
const react_i18next_1 = require("react-i18next");
class NextStaticProvider extends react_1.default.Component {
    render() {
        const { children, tReady } = this.props;
        return tReady ? children : null;
    }
}
NextStaticProvider.propTypes = {
    children: prop_types_1.default.node.isRequired,
    tReady: prop_types_1.default.bool
};
NextStaticProvider.defaultProps = {
    tReady: true
};
exports.default = react_i18next_1.withTranslation()(NextStaticProvider);
