import { jsx as _jsx } from "react/jsx-runtime";
import { Bars, Xmark } from '@gravity-ui/icons';
import { Control } from "../../../../components/index.js";
import { block } from "../../../../utils/index.js";
import './MobileMenuButton.css';
const b = block('mobile-menu-button');
const ICON_SIZE = 24;
export const MobileMenuButton = ({ isSidebarOpened, onSidebarOpenedChange, }) => (_jsx(Control, { className: b(), onClick: (e) => {
        e.stopPropagation();
        e.nativeEvent.stopImmediatePropagation();
        onSidebarOpenedChange(!isSidebarOpened);
    }, size: "l", icon: isSidebarOpened ? Xmark : Bars, iconSize: ICON_SIZE }));
//# sourceMappingURL=MobileMenuButton.js.map
