"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.WidgetTarget = void 0;
require("./WidgetTarget.scss");
const React = require("react");
const core_bentley_1 = require("@itwin/core-bentley");
const Widget_1 = require("../widget/Widget");
const TargetContainer_1 = require("./TargetContainer");
const MergeTarget_1 = require("./MergeTarget");
/** @internal */
function WidgetTarget() {
    const widgetId = React.useContext(Widget_1.WidgetIdContext);
    (0, core_bentley_1.assert)(!!widgetId);
    return (React.createElement(TargetContainer_1.TargetContainer, { className: "nz-target-widgetTarget", direction: "horizontal" },
        React.createElement(MergeTarget_1.MergeTarget, { widgetId: widgetId })));
}
exports.WidgetTarget = WidgetTarget;
//# sourceMappingURL=WidgetTarget.js.map