"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.BackButton = void 0;
require("./Back.scss");
const classnames_1 = require("classnames");
const React = require("react");
const Icon_1 = require("./Icon");
/** Back button which displays icon. Used in [[Toolbar]] component.
 * @note See basic button: [[ToolbarButton]]
 * @internal
 */
class BackButton extends React.PureComponent {
    render() {
        const { className, ...props } = this.props;
        const buttonClassName = (0, classnames_1.default)("nz-toolbar-button-back", className);
        return React.createElement(Icon_1.ToolbarIcon, { className: buttonClassName, ...props });
    }
}
exports.BackButton = BackButton;
//# sourceMappingURL=Back.js.map