"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module StatusBar
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.withStatusFieldProps = void 0;
const React = require("react");
const StatusBar_1 = require("./StatusBar");
/** HOC that injects values for [[StatusFieldProps]].
 * @public
 * @deprecated in 3.3. StatusFieldProps props are deprecated, using this is no longer necessary and will be removed.
 */
const withStatusFieldProps = (
// eslint-disable-next-line @typescript-eslint/naming-convention
Component) => {
    return function WithStatusFieldProps(props) {
        const statusBarContext = React.useContext(StatusBar_1.StatusBarContext);
        const { toastTargetRef, ...args } = statusBarContext; // eslint-disable-line @typescript-eslint/no-unused-vars
        return (React.createElement(Component, { ...props, ...args }));
    };
};
exports.withStatusFieldProps = withStatusFieldProps;
//# sourceMappingURL=withStatusFieldProps.js.map