import 'core-js/modules/es.object.assign.js';
import { __rest } from '../../../_virtual/_tslib.js';
import { jsx } from 'react/jsx-runtime';
import { Badge as Badge$1 } from '@mui/material';

const Badge = _a => {
  var {
      badgeSize = 14,
      withIcon = false
    } = _a,
    props = __rest(_a, ["badgeSize", "withIcon"]);
  return jsx(Badge$1, Object.assign({}, props, {
    slotProps: withIcon ? {
      badge: {
        style: {
          padding: 0,
          minWidth: badgeSize,
          height: badgeSize,
          top: badgeSize / 2,
          right: badgeSize - 12
        }
      }
    } : undefined
  }));
};

export { Badge, Badge as default };
