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