import { jsx as d } from "react/jsx-runtime";
import { Button as e } from "@mui/material";
function m({
  icon: t = void 0,
  children: r,
  sx: o,
  ...i
}) {
  const n = [
    {
      height: 32,
      minWidth: 32,
      borderColor: "divider",
      borderRadius: "100vh",
      fontSize: 14,
      color: "text.secondary",
      ...!r && {
        padding: 0,
        height: 32,
        ".MuiButton-startIcon": {
          margin: 0
        }
      }
    },
    ...Array.isArray(o) ? o : [o]
  ];
  return /* @__PURE__ */ d(e, { startIcon: t, color: "inherit", variant: "outlined", sx: n, ...i, children: r });
}
export {
  m as AddonButton
};
