/*---------------------------------------------------------------------------------------------
 * 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
 */
import "./Snap.scss";
import classnames from "classnames";
import * as React from "react";
/** Snap row used in [[SnapModePanel]] component.
 * @internal
 */
export class Snap extends React.PureComponent {
    render() {
        const dialogClassName = classnames("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)));
    }
}
//# sourceMappingURL=Snap.js.map