"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 ToolAssistance
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ToolAssistanceInstruction = void 0;
require("./Instruction.scss");
const classnames_1 = require("classnames");
const React = require("react");
const Item_1 = require("./Item");
const NewDot_1 = require("./NewDot");
/** Tool assistance instruction used in [[ToolAssistanceDialog]] component.
 * @internal
 */
class ToolAssistanceInstruction extends React.PureComponent {
    render() {
        const className = (0, classnames_1.default)("nz-footer-toolAssistance-instruction", this.props.className);
        const textClassName = this.props.isNew ? "nz-text-new" : undefined;
        return (React.createElement(Item_1.ToolAssistanceItem, { className: className, style: this.props.style },
            React.createElement("span", { className: "nz-image" },
                this.props.isNew && React.createElement(NewDot_1.NewDot, null),
                this.props.image),
            React.createElement("span", { className: textClassName }, this.props.text)));
    }
}
exports.ToolAssistanceInstruction = ToolAssistanceInstruction;
//# sourceMappingURL=Instruction.js.map