import React from 'react'; import { getWebProps } from 'react-native-unistyles/web'; import { listStyles } from './List.styles'; import type { ListSectionProps } from './types'; const ListSection: React.FC = ({ title, children, collapsed = false, style, testID, }) => { const sectionProps = getWebProps([listStyles.section as any, style as any]); const titleProps = getWebProps([listStyles.sectionTitle as any]); const contentProps = getWebProps([listStyles.sectionContent as any]); return (
{title && (
{title}
)} {!collapsed && (
{children}
)}
); }; export default ListSection;