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