"use strict";

import { View } from 'react-native';
import GroupedItem from './GroupedItem';
import { jsx as _jsx } from "react/jsx-runtime";
const GroupedSection = ({
  items,
  theme
}) => {
  return /*#__PURE__*/_jsx(View, {
    style: {
      width: '100%'
    },
    children: items.map((item, index) => /*#__PURE__*/_jsx(GroupedItem, {
      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))
  });
};
export default GroupedSection;
//# sourceMappingURL=GroupedSection.js.map