"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.SnapModePanel = void 0;
require("./Panel.scss");
const classnames_1 = require("classnames");
const React = require("react");
const TitleBar_1 = require("../dialog/TitleBar");
/** Snap mode panel used with [[SnapMode]] component.
 * @note This is a presentational component and should be aligned with [[SnapMode]] component.
 * I.e. use [[FooterPopup]] to handle alignment.
 * @internal
 */
class SnapModePanel extends React.PureComponent {
    render() {
        const className = (0, classnames_1.default)("nz-footer-snapMode-panel", this.props.className);
        return (React.createElement("div", { className: className, style: this.props.style },
            React.createElement(TitleBar_1.TitleBar, { title: this.props.title }),
            React.createElement("div", { className: "nz-snaps" }, this.props.children)));
    }
}
exports.SnapModePanel = SnapModePanel;
//# sourceMappingURL=Panel.js.map