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