import l from "react";
const s = 4;
function p(i) {
  const {
    dropPosition: n,
    dropLevelOffset: a,
    prefixCls: c,
    indent: e,
    direction: o = "ltr"
  } = i, r = o === "ltr" ? "left" : "right", d = o === "ltr" ? "right" : "left", t = {
    [r]: -a * e + s,
    [d]: 0
  };
  switch (n) {
    case -1:
      t.top = -3;
      break;
    case 1:
      t.bottom = -3;
      break;
    default:
      t.bottom = -3, t[r] = e + s;
      break;
  }
  return /* @__PURE__ */ l.createElement("div", {
    style: t,
    className: `${c}-drop-indicator`
  });
}
export {
  p as default,
  s as offset
};
