"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MobileMenuButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const icons_1 = require("@gravity-ui/icons");
const components_1 = require("../../../../components/index.js");
const utils_1 = require("../../../../utils/index.js");
const b = (0, utils_1.block)('mobile-menu-button');
const ICON_SIZE = 24;
const MobileMenuButton = ({ isSidebarOpened, onSidebarOpenedChange, }) => ((0, jsx_runtime_1.jsx)(components_1.Control, { className: b(), onClick: (e) => {
        e.stopPropagation();
        e.nativeEvent.stopImmediatePropagation();
        onSidebarOpenedChange(!isSidebarOpened);
    }, size: "l", icon: isSidebarOpened ? icons_1.Xmark : icons_1.Bars, iconSize: ICON_SIZE }));
exports.MobileMenuButton = MobileMenuButton;
//# sourceMappingURL=MobileMenuButton.js.map
