"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WidgetPanelsFrontstageContent = 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 Frontstage
 */
const React = require("react");
const ContentLayout_1 = require("../content/ContentLayout");
const FrontstageDef_1 = require("../frontstage/FrontstageDef");
/** @internal */
function WidgetPanelsFrontstageContent() {
    const frontstageDef = (0, FrontstageDef_1.useActiveFrontstageDef)();
    if (!frontstageDef ||
        !frontstageDef.contentLayoutDef ||
        !frontstageDef.contentGroup)
        return null;
    return (React.createElement(ContentLayout_1.ContentLayout, { contentLayout: frontstageDef.contentLayoutDef, contentGroup: frontstageDef.contentGroup }));
}
exports.WidgetPanelsFrontstageContent = WidgetPanelsFrontstageContent;
//# sourceMappingURL=FrontstageContent.js.map