import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import l from "../../node_modules/antd/es/button/button.mjs";
const c = ({ type: d = "default", warning: f = !1, success: n = !1, ...o }) => {
  const r = { type: d, ...o };
  return o.danger ? e.jsx(l, { danger: !0, ...r, children: r.children }) : f ? d === "default" ? e.jsx(l, { style: { borderColor: "#ff8f1f", color: "#ff8f1f" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
    borderColor: "#ff8f1f",
    borderWidth: "dashed",
    color: "#ff8f1f"
  }, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#ff8f1f" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#ff8f1f" }, ...r, children: r.children }) : n ? d === "default" ? e.jsx(l, { style: { borderColor: "#00b578", color: "#00b578" }, ...r, children: r.children }) : d === "dashed" ? e.jsx(l, { style: {
    borderColor: "#00b578",
    borderWidth: "dashed",
    color: "#00b578"
  }, ...r, children: r.children }) : d === "text" || d === "link" ? e.jsx(l, { style: { color: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { style: { backgroundColor: "#00b578" }, ...r, children: r.children }) : e.jsx(l, { ...r, children: r.children });
};
export {
  c as default
};
