// packages/components/src/card/card-body/component.tsx
import { contextConnect } from "../../context/index.js";
import { Scrollable } from "../../scrollable/index.js";
import { View } from "../../view/index.js";
import { useCardBody } from "./hook.js";
import { jsx as _jsx } from "react/jsx-runtime";
function UnconnectedCardBody(props, forwardedRef) {
  const {
    isScrollable,
    ...otherProps
  } = useCardBody(props);
  if (isScrollable) {
    return /* @__PURE__ */ _jsx(Scrollable, {
      ...otherProps,
      ref: forwardedRef
    });
  }
  return /* @__PURE__ */ _jsx(View, {
    ...otherProps,
    ref: forwardedRef
  });
}
var CardBody = contextConnect(UnconnectedCardBody, "CardBody");
var component_default = CardBody;
export {
  CardBody,
  component_default as default
};
//# sourceMappingURL=component.js.map
