import { jsx as o } from "react/jsx-runtime";
import { useContext as e } from "react";
import { ScrollWrapper as m } from "../ScrollWrapper/ScrollWrapper.es.js";
import { ModalLayoutContext as i } from "./context/ModalLayout.es.js";
const l = ({ direction: t, children: r, horizontalPadding: a = !0 }) => {
  const { padding: d } = e(i);
  return /* @__PURE__ */ o(
    "div",
    {
      "data-test-id": "modal-body",
      className: `tw-flex-auto tw-min-h-0 ${a ? d.horizontal : "tw-pr-2"}`,
      children: /* @__PURE__ */ o(m, { direction: t, children: r })
    }
  );
};
l.displayName = "FondueModalBody";
export {
  l as ModalBody
};
//# sourceMappingURL=ModalBody.es.js.map
