"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;
const classnames_1 = require("classnames");
const React = require("react");
require("./Field.scss");
/** Field component used in [[StatusBar]] component.
 * @beta
 * @deprecated in 4.13.0. Use [iTwinUI Button](https://itwinui.bentley.com/docs/button) instead.
 */
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 (
    // eslint-disable-next-line jsx-a11y/click-events-have-key-events
    React.createElement("div", { ref: ref, className: classNames, title: props.title, style: props.style, onClick: props.onClick, role: "button",
        tabIndex: -1 }, props.children));
});
//# sourceMappingURL=Field.js.map