import c from "../../../classnames/index.mjs";
import "../../../rc-menu/es/index.mjs";
import * as n from "react";
import "../config-provider/index.mjs";
import { ConfigContext as f } from "../config-provider/context.mjs";
import m from "../../../rc-menu/es/Divider.mjs";
var p = globalThis && globalThis.__rest || function(t, s) {
  var o = {};
  for (var e in t)
    Object.prototype.hasOwnProperty.call(t, e) && s.indexOf(e) < 0 && (o[e] = t[e]);
  if (t != null && typeof Object.getOwnPropertySymbols == "function")
    for (var r = 0, e = Object.getOwnPropertySymbols(t); r < e.length; r++)
      s.indexOf(e[r]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[r]) && (o[e[r]] = t[e[r]]);
  return o;
};
const d = (t) => {
  const {
    prefixCls: s,
    className: o,
    dashed: e
  } = t, r = p(t, ["prefixCls", "className", "dashed"]), {
    getPrefixCls: i
  } = n.useContext(f), a = i("menu", s), l = c({
    [`${a}-item-divider-dashed`]: !!e
  }, o);
  return /* @__PURE__ */ n.createElement(m, Object.assign({
    className: l
  }, r));
}, y = d;
export {
  y as default
};
