/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module ToolAssistance
 */
import "./Instruction.scss";
import classnames from "classnames";
import * as React from "react";
import { ToolAssistanceItem } from "./Item";
import { NewDot } from "./NewDot";
/** Tool assistance instruction used in [[ToolAssistanceDialog]] component.
 * @internal
 */
export class ToolAssistanceInstruction extends React.PureComponent {
    render() {
        const className = classnames("nz-footer-toolAssistance-instruction", this.props.className);
        const textClassName = this.props.isNew ? "nz-text-new" : undefined;
        return (React.createElement(ToolAssistanceItem, { className: className, style: this.props.style },
            React.createElement("span", { className: "nz-image" },
                this.props.isNew && React.createElement(NewDot, null),
                this.props.image),
            React.createElement("span", { className: textClassName }, this.props.text)));
    }
}
//# sourceMappingURL=Instruction.js.map