UNPKG

@oxyhq/services

Version:

Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀

28 lines (27 loc) • 767 B
"use strict"; import React from 'react'; 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, { children: items.map((item, index) => /*#__PURE__*/_jsx(GroupedItem, { icon: item.icon, iconColor: item.iconColor, 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, customContent: item.customContent }, item.id)) }); }; export default GroupedSection; //# sourceMappingURL=GroupedSection.js.map