"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 SnapMode
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Snap = void 0;
require("./Snap.scss");
const classnames_1 = require("classnames");
const React = require("react");
/** Snap row used in [[SnapModePanel]] component.
 * @internal
 */
class Snap extends React.PureComponent {
    render() {
        const dialogClassName = (0, classnames_1.default)("nz-footer-snapMode-snap", this.props.isActive && "nz-active", this.props.className);
        return (
        // eslint-disable-next-line jsx-a11y/click-events-have-key-events
        React.createElement("div", { onClick: this.props.onClick, className: dialogClassName, style: this.props.style, role: "button", tabIndex: -1 },
            this.props.icon === undefined ? undefined : (React.createElement("div", null, this.props.icon)),
            React.createElement("div", null, this.props.children)));
    }
}
exports.Snap = Snap;
//# sourceMappingURL=Snap.js.map