"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 Toolbar
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolbarWithOverflow = void 0;
const React = require("react");
const Toolbar_1 = require("./Toolbar");
/** Component that displays toolbar items, displaying only the elements that can fit in the available space,
 * and put the other items into a single panel.
 * @beta
 */
function ToolbarWithOverflow(props) {
    const { overflowExpandsTo, ...toolbarProps } = props;
    return React.createElement(Toolbar_1.Toolbar, { enableOverflow: { overflowExpandsTo }, ...toolbarProps });
}
exports.ToolbarWithOverflow = ToolbarWithOverflow;
//# sourceMappingURL=ToolbarWithOverflow.js.map