import { forwardRef } from 'react'; import { View, Text } from 'react-native'; import { listStyles } from './List.styles'; import type { ListSectionProps } from './types'; import type { IdealystElement } from '../utils/refTypes'; const ListSection = forwardRef(({ title, children, collapsed = false, style, testID, }, ref) => { return ( {title && ( {title} )} {!collapsed && ( {children} )} ); }); ListSection.displayName = 'ListSection'; export default ListSection;