/*---------------------------------------------------------------------------------------------
 * 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 * as React from "react";
import { SelectionCountField } from "./SelectionCount.js";
import { useReduxFrameworkState } from "../uistate/useReduxFrameworkState.js";
/** `SelectionInfoField` component is designed to be specified in a status bar.
 * It is used to display the number of items in a selection set.
 * @note Requires redux provider.
 * @public
 * @deprecated in 4.15.0. Use {@link SelectionCountField} instead.
 */
// eslint-disable-next-line @typescript-eslint/no-deprecated
export function SelectionInfoField(props) {
    const numItemsSelected = useReduxFrameworkState(
    // eslint-disable-next-line @typescript-eslint/no-deprecated
    (state) => state?.sessionState.numItemsSelected ?? 0);
    return (React.createElement(SelectionCountField, { className: props.className, style: props.style, count: numItemsSelected }));
}
//# sourceMappingURL=SelectionInfo.js.map