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