import { jsx as _jsx } from "react/jsx-runtime";
import classNames from 'classnames';
import { useMenu } from '../../../lib/ui/Menu/Menu.js';
export function MenuItem({ onClick, children, className, preventDefaultOnClick = false, }) {
    const { close: closeMenu } = useMenu();
    return (_jsx("div", { className: classNames('seam-menu-item', className), onClick: (event) => {
            onClick(event);
            if (!preventDefaultOnClick) {
                closeMenu();
            }
        }, children: children }));
}
//# sourceMappingURL=MenuItem.js.map