"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 WidgetPanels
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.useHorizontalPanelAlignment = void 0;
require("./useHorizontalPanelAlignment.scss");
const React = require("react");
const PreviewHorizontalPanelAlign_1 = require("./PreviewHorizontalPanelAlign");
/** @internal */
function useHorizontalPanelAlignment(side) {
    const { enabled, alignments } = React.useContext(PreviewHorizontalPanelAlign_1.HorizontalPanelAlignContext);
    return enabled
        ? {
            attributes: {
                "data-preview-horizontal-panel-align-top": alignments.top,
                "data-preview-horizontal-panel-align-bottom": alignments.bottom,
            },
            classNames: {
                [`uifw-preview-horizontalPanelAlignment_${side}`]: true,
            },
        }
        : {};
}
exports.useHorizontalPanelAlignment = useHorizontalPanelAlignment;
//# sourceMappingURL=useHorizontalPanelAlignment.js.map