/*---------------------------------------------------------------------------------------------
* 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
 */
import * as React from "react";
import { StatusBarContext } from "./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.
 */
export const withStatusFieldProps = (
// eslint-disable-next-line @typescript-eslint/naming-convention
Component) => {
    return function WithStatusFieldProps(props) {
        const statusBarContext = React.useContext(StatusBarContext);
        const { toastTargetRef, ...args } = statusBarContext; // eslint-disable-line @typescript-eslint/no-unused-vars
        return (React.createElement(Component, { ...props, ...args }));
    };
};
//# sourceMappingURL=withStatusFieldProps.js.map