/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module StatusBar
 */
import "./LabelIndicator.scss";
import classnames from "classnames";
import * as React from "react";
import { StatusBarIndicator } from "./Indicator";
import { Icon } from "@itwin/core-react";
import { StatusBarLabelSide } from "./StatusBarItem";
/** [[StatusBar]] indicator that shows a label with an icon.
 * @beta
 */
export function StatusBarLabelIndicator(props) {
    const { className, iconSpec, label, labelSide, ...other } = props;
    const classNames = classnames("uifw-statusbar-labelIndicator", labelSide === StatusBarLabelSide.Right && "uifw-reversed", className);
    return (React.createElement(StatusBarIndicator, { className: classNames, ...other },
        label && React.createElement("span", { className: "uifw-label" }, label),
        iconSpec && (React.createElement("div", { className: "uifw-icon" },
            React.createElement(Icon, { iconSpec: iconSpec })))));
}
//# sourceMappingURL=LabelIndicator.js.map