"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useAllowedPanelTarget = void 0;
/*---------------------------------------------------------------------------------------------
 * 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
 */
const React = require("react");
const core_bentley_1 = require("@itwin/core-bentley");
const Panel_1 = require("../widget-panels/Panel");
const useAllowedSideTarget_1 = require("./useAllowedSideTarget");
/** Check the docking side against allowed regions
 * @internal
 */
function useAllowedPanelTarget() {
    const side = React.useContext(Panel_1.PanelSideContext);
    (0, core_bentley_1.assert)(!!side);
    return (0, useAllowedSideTarget_1.useAllowedSideTarget)(side);
}
exports.useAllowedPanelTarget = useAllowedPanelTarget;
//# sourceMappingURL=useAllowedPanelTarget.js.map