"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 Widget
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.MaximizedWidgetProvider = exports.MaximizedWidgetContext = void 0;
const React = require("react");
/** Context containing configuration and state for maximized widget feature.
 * @internal
 */
exports.MaximizedWidgetContext = React.createContext({
    maximizedWidget: undefined,
    setMaximizedWidget: () => { },
});
/** Maximized widget feature provider.
 * @internal
 */
function MaximizedWidgetProvider({ children, }) {
    const [maximizedWidget, setMaximizedWidget] = React.useState(undefined);
    return (React.createElement(exports.MaximizedWidgetContext.Provider, { value: { maximizedWidget, setMaximizedWidget } }, children));
}
exports.MaximizedWidgetProvider = MaximizedWidgetProvider;
//# sourceMappingURL=MaximizedWidget.js.map