/*---------------------------------------------------------------------------------------------
 * 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 "./Field.scss";
import classnames from "classnames";
import * as React from "react";
import { FooterIndicator } from "@itwin/appui-layout-react";
/** Field component used in [[StatusBar]] component.
 * @beta
 */
export const StatusBarField = React.forwardRef(function StatusBarField(props, ref) {
    const hasClickAction = !!props.onClick;
    const classNames = classnames("uifw-statusbar-field", hasClickAction && "uifw-action", props.className);
    return (React.createElement(FooterIndicator, { ref: ref, className: classNames, title: props.title, style: props.style, onClick: props.onClick, ...{
            role: "button",
            tabIndex: -1,
        } }, props.children));
});
//# sourceMappingURL=Field.js.map