"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"));
exports.withInternals = (WrappedComponent, config) => {
    class WithInternals extends react_1.default.Component {
        render() {
            return react_1.default.createElement(WrappedComponent, Object.assign({}, this.props, { nextI18NextInternals: config }));
        }
    }
    WithInternals.displayName = `withnextI18NextInternals(${WrappedComponent.displayName ||
        WrappedComponent.name ||
        'Component'})`;
    return WithInternals;
};
