"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _GroupedItem = _interopRequireDefault(require("./GroupedItem"));
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const GroupedSection = ({
  items,
  theme
}) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
    style: {
      width: '100%'
    },
    children: items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_GroupedItem.default, {
      icon: item.icon,
      iconColor: item.iconColor,
      image: item.image,
      imageSize: item.imageSize,
      title: item.title,
      subtitle: item.subtitle,
      theme: theme,
      onPress: item.onPress,
      isFirst: index === 0,
      isLast: index === items.length - 1,
      showChevron: item.showChevron,
      disabled: item.disabled,
      selected: item.selected,
      customContent: item.customContent,
      customIcon: item.customIcon,
      multiRow: item.multiRow,
      dense: item.dense,
      customContentBelow: item.customContentBelow
    }, item.id))
  });
};
var _default = exports.default = GroupedSection;
//# sourceMappingURL=GroupedSection.js.map