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