"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.useTransientState = void 0;
const appui_layout_react_1 = require("@itwin/appui-layout-react");
/** Hook that allows to save and restore transient DOM state (i.e. scroll offset) of a widget.
 * @beta
 */
function useTransientState(onSave, onRestore) {
    (0, appui_layout_react_1.useTransientState)(onSave, onRestore);
}
exports.useTransientState = useTransientState;
//# sourceMappingURL=useTransientState.js.map