import React, { ReactNode } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, TextStyle, Image, ViewStyle, } from 'react-native'; import { colors } from '../../styles/colors'; export const ListEmptyComponent = ({ listEmptyComponentStyle, emptyListMessage, }: any) => { return ( {emptyListMessage || 'No options available'} ); }; export const ItemSeparatorComponent = ({ itemSeparatorStyle, }: { itemSeparatorStyle: ViewStyle; }) => { return ; }; export const ListItemContainer = ({ children, listItemContainerStyle, }: { children: ReactNode; listItemContainerStyle: ViewStyle; }) => { return ( {children} ); }; export const SectionHeaderTitle = ({ title, sectionHeaderStyle, onPress, isExpanded, }: { title: string; sectionHeaderStyle?: TextStyle; onPress?: () => void; isExpanded: Boolean; }) => { return ( {title} ); }; const styles = StyleSheet.create({ listEmptyComponentStyle: { alignItems: 'center', width: '100%', marginVertical: 20, }, itemSeparatorStyle: { backgroundColor: colors.gray, height: 1, opacity: 0.15, }, listItemContainerStyle: { paddingHorizontal: 20, paddingVertical: 10, flexDirection: 'row', alignItems: 'center', }, sectionHeaderStyle: { fontWeight: '500' }, accordionStyle: { flexDirection: 'row', flexWrap: 'nowrap', justifyContent: 'space-between', alignContent: 'center', }, rotatedIcon90: { transform: [{ rotate: '-90deg' }], }, });